- Authorization
- Swagger Docs
- Validation
- Dockerized
- Typesafe (Typescript)
- PM2 For multinstance launch
- Typescript
- Nodejs
- Fastify
- Zod
- Docker
- PM2
- Swagger
- JWT
- PostgresSQL
Start developing locally.
Before you get started make sure you have docker and docker-compose installed
clone this repo
https://github.com/ayushpaharia/Fastify-APIInstall all dependencies
# install server side deps
cd Fasitify-API
npm install
# or yarn installEnvironment variables
Now this is a bit tricky.
- create a new file .env in the root folder
- open .env.EXAMPLE
- copy the contents and paste it to the .env
And change all the dummy keys with your own valid ones.
Finally to start the server execute this script
npm run developstart - starts server with ts-node
build - transpiles code with tsc in watch mode
pm2:startone - starts one instance of app with pm2
pm2:start - start all instances available with pm2
pm2:dev - transpiles and runs from ts code
pm2:kill - kill all pm2 server instances
serve - transpiles and runs from js code
dev:1 - starts server with ts-node-dev
dev:2 - starts server with nodemon\
git add .
git commit -m "feat: added new stuff"
git push YOUR_REPO_URL BRANCH_NAMEMade with ❤️ and javascript 💻 by Ayush Paharia
