prerequisite: nodejs v16.x
- Install dependencies
git clone https://github.com/hakimamarullah/forum-api-garuda-game.git
cd ~/forum-api-garuda-game
npm install
- Please check .env.example file to see all needed values then run following commands
npm run migrate up # create tables for development
npm run migrate:test up # create tables in test database
- Run it using this command (choose one)
npm run start # no auto-reload
npm run start:dev # auto-reload on code change
- Server is up and running on
http://localhost:5000
or based on your environment setup
Check out Postman Docs for all endpoints: Forum API V1 DOCS
Check this link if you want to try live version: https://evil-pig-22.a276.dcdg.xyz/
Deployment:
VM: AWS EC2
Database: AWS RDS PostgresSQL
Reverse-Proxy: Nginx
Certificate: Certbot