Skip to content

hakimamarullah/forum-api-garuda-game

Repository files navigation

Forum API Garuda Game

ID Camp 2022

CI Master CD Master

Jest Coverage

Branches Functions Lines Statements Jest coverage

How to run locally

prerequisite: nodejs v16.x

  1. Install dependencies
git clone https://github.com/hakimamarullah/forum-api-garuda-game.git
cd ~/forum-api-garuda-game
npm install
  1. 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
  1. Run it using this command (choose one)
npm run start # no auto-reload
npm run start:dev # auto-reload on code change
  1. 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