Remix Railroad Blues Stack
Remix + Postgres optimized for Railway
Postgres
railwayapp-templates/postgres-ssl:latest
Just deployed
/var/lib/postgresql/data
Remix
shamsup/railroad-blues-stack-railway-template
Just deployed
Remix Railroad Blues Stack
This is a fork of the Remix Blues Stack adapted for deploying to Railway
Learn more about Remix Stacks.
What's in the template?
- Remix Notes Application
- Postgres database
- Email/Password Authentication with cookie-based sessions
- Database ORM with Prisma
- Styling with Tailwind
- End-to-end testing with Cypress
- Local third party request mocking with MSW
- Unit testing with Vitest
- Code formatting with Prettier
- Linting with ESLint
- Static Types with TypeScript
Local Development
-
Start the Postgres Database in Docker:
npm run docker
_ Note: The npm script will complete while Docker sets up the container in the background. Ensure that Docker has finished and your container is running before proceeding._
-
Initial setup:
only run this the first timenpm run setup
-
Start dev server:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
The database seed script creates a new user with some data you can use to get started:
- Email:
[email protected]
- Password:
racheliscool
Relevant code:
This is a pretty simple note-taking app, but it's a good example of how you can build a full stack app with Prisma and Remix. The main functionality is creating users, logging in and out, and creating and deleting notes.
- creating users, and logging in and out
app/models/user.server.ts
- user sessions, and verifying them
app/session.server.ts
- creating, and deleting notes
app/models/note.server.ts
Check out the stack on GitHub for more details.
Cost Estimate
For an experiment with no traffic, this should cost about $2/mo to keep deployed without App Sleeping enabled
Template Content