Git Product home page Git Product logo

gff-socialmediaapp-backend's Introduction

GFF_BACKEND

API is written in TypeScript.

Table of Contents

Requirements

  • Node.js >=16.0.0
  • Npm >=7.0.0
  • Yarn >= 1.22.17

Setup

Clone Repository

git clone [email protected]:ikovac/gff_backend.git

Install Dependencies

yarn install

Build Instructions

yarn build

Start Development

yarn dev

Start

yarn start

Deploy to AWS

  1. Connect to EC2 instance using .pem file
  2. Go to gff project folder cd gff_backend
  3. Stop running pm2 process pm2 stop gff
  4. Delete previous pm2 process pm2 delete gff
  5. Delete build rm -rf build/
  6. Delete node_modules rm -rf node_modules
  7. Pull latest changes git pull
  8. Install dependencies yarn install
  9. Build application yarn build
  10. TEMP HACK - copy YOTI .pem file
  • mkdir build/src/keys
  • cp ~/keys/yoti/yoti.pem build/src/keys
  1. Start pm2 process pm2 start ecosystem.config.js

Set firebase file in environment

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 world Data

Import src/api/world/world.sql file in database to see Countries, States and Cities Data.

gff-socialmediaapp-backend's People

Contributors

kaushalkoladiya avatar lucijacn avatar developerchiragagrawal avatar vados60 avatar jayraj-smt avatar cloudhardik avatar rinkisingh8181 avatar

Watchers

MuzammilRamzan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.