fveauvy / nodejs-prisma-fastify-boilerplate

Clean Architecture for node.js projects using fastify and prisma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodejs-prisma-fastify-boilerplate

Clean Architecture for node.js projects using fastify and prisma

src
│   main.ts         # Application entry point\
└───controllers     # route controllers for all the endpoints of the app
└───middlewares     # route middleware
└───prisma          # here lies prisma schema and migrations
└───types           # Type declaration files (d.ts) for Typescript


Getting Started

Step 1: Set up the Development Environment

You need to set up your development environment before you can do anything.

Install Node.js and NPM

Install

  • Install all dependencies with yarn install

Running in dev mode

  • Run yarn start
  • The server address will be displayed to you as http://0.0.0.0:3000

Building the project and run it

  • Run yarn build to generated all JavaScript files from the TypeScript sources.
  • the builded app located in dist.

About

Clean Architecture for node.js projects using fastify and prisma

License:MIT License


Languages

Language:TypeScript 90.8%Language:Shell 7.7%Language:Dockerfile 1.6%