Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mandaputtra/mp-fastify-template
My Fastify Project Template
https://github.com/mandaputtra/mp-fastify-template
Last synced: 27 days ago
JSON representation
My Fastify Project Template
- Host: GitHub
- URL: https://github.com/mandaputtra/mp-fastify-template
- Owner: mandaputtra
- License: mit
- Created: 2018-11-19T05:09:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T03:30:06.000Z (about 2 years ago)
- Last Synced: 2024-10-31T02:21:49.855Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.69 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mandaputtra Fastify Project Template
My go to tempate for creating REST API. These will be planned as monolith REST APP, but can be easly torn apart to be a Microservices.
## Requirements
1. Node.js (Latest LTS)
2. Postgress (You can change the SQL Client on knexfile.js)## Getting Started
Clone this repo to your folder
```
$ git clone [email protected]:mandaputtra/mp-fastify-template.git api
```Install dependencies
```
$ npm i -g nodemon # if you don't had one
$ npm i
```Specify your environment variable on `.env` and start the project.
```
$ npm run dev # development mode
$ npm start # production mode
$ npm test # test mode
```For windows please install `win-node-env` for ENV terminal compatibility with UNIX.
```
$ npm i -g win-node-env
```## Acknowledgement
Some major library this project use :
1. fastify
2. knex
3. husky
4. eslintOther can be found on [package.json](./package.json)