πββοΈ A type-safe Node.js template to quickly get started building with Fastify.
- Fastify - Fast and low overhead web framework, for Node.js.
- Prisma - Type-safe ORM to ship code which doesn't break during production.
- MongoDB - A NoSQL database.
- pnpm - Fast, disk space efficient package manager
-
If you haven't installed pnpm yet then go ahead and install it via npm/yarn.
yarn add -g pnpm # yarn npm install -g pnpm # npm
-
Click on "Use this template" and you are ready to ship πββοΈ
-
Install all the dependencies via
pnpm i
command. -
Create
.env
file and add in your MongoDB connection URIDATABASE_URL=your-mongodb-connection-uri
-
Open a new terminal window and run
pnpm watch
, this would re-build all the files on any kind of file changes under thesrc
folder. -
Open a new terminal window and run
pnpm dev
, this would spin up a local development server at http://localhost:3000 -
The database schema is stored within the
prisma/schema.prisma
file. If you want to have cross-file model relations, then you would need to use something like Prismix. -
Deploy your Node.js application to Railway within seconds
Made by @0xMukesh