Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satishbabariya/nodejs-prisma-fastify-boilerplate
Clean Architecture for node.js projects using fastify and prisma
https://github.com/satishbabariya/nodejs-prisma-fastify-boilerplate
fastify nodejs prisma
Last synced: 25 days ago
JSON representation
Clean Architecture for node.js projects using fastify and prisma
- Host: GitHub
- URL: https://github.com/satishbabariya/nodejs-prisma-fastify-boilerplate
- Owner: satishbabariya
- License: mit
- Created: 2022-04-06T14:55:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-20T19:26:01.000Z (over 2 years ago)
- Last Synced: 2024-04-18T21:40:08.114Z (8 months ago)
- Topics: fastify, nodejs, prisma
- Language: TypeScript
- Homepage:
- Size: 20.5 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://nodejs.org/en/download/)
- on OSX use [homebrew](http://brew.sh) `brew install node`
- on Windows use [chocolatey](https://chocolatey.org/) `choco install nodejs`### 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`.