• API

 

  • Install NodeJS >= 6.0
  • Install MongoDB >= 3.2
  • Install Redis >= 2.8
  • Cd to project folder
  • Run npm install command
  • Copy / rename file server > config > local.env.example.js to local.env.js
  • Open file and change PORT, DOMAIN, Sendgrid API key, Firebase server API key

 

  • Cd to source code root folder
  • Run node server/index.js command
  • If you want run it with nginx proxy, you can set up like this tutorial

 

  • Backend

 

  • Install NodeJS >= 6.0
  • Cd to source code folder
  • Run npm install
  • Open app > env.js file
  • Change API_ENDPOINT to your API server

 

  • Run npm run build command
  • Copy your source code in the build folder to your web server
  • Build folder is look like this

Leave a Reply

Your email address will not be published. Required fields are marked *