API is written in TypeScript.
Table of Contents
- Node.js >=16.0.0
- Npm >=7.0.0
- Yarn >= 1.22.17
git clone [email protected]:ikovac/gff_backend.git
yarn install
yarn build
yarn dev
yarn start
- Connect to EC2 instance using .pem file
- Go to gff project folder
cd gff_backend
- Stop running pm2 process
pm2 stop gff
- Delete previous pm2 process
pm2 delete gff
- Delete build
rm -rf build/
- Delete node_modules
rm -rf node_modules
- Pull latest changes
git pull
- Install dependencies
yarn install
- Build application
yarn build
- TEMP HACK - copy YOTI .pem file
- mkdir build/src/keys
- cp ~/keys/yoti/yoti.pem build/src/keys
- Start pm2 process
pm2 start ecosystem.config.js
Run following command to set an firebase file as an environment variable and then run yarn run dev
. Or For deployment set this variable and value in environment.
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/firebase.json"
Import src/api/world/world.sql
file in database to see Countries, States and Cities Data.