/app16-nodejs

Back-end API for X-Tech/app16-backend

Primary LanguageJavaScript

About:

Back-end API for X-Tech/app16-backend with Node.JS implementation

Requirements

  • NPM with NodeJS (or Nginx server) installed
  • MySQL installed

Demo Test:

  • Run following commands
$ git clone https://github.com/boolfalse/app16.git
$ cd app16/
  • Create empty DB

  • Create .env file inside of your project root folder, and define required variables as described in .env.example

  • Set config variables in "config/config.js" and "config/config.json" files (later ignore these)

  • Run migrations (and seeds)

$ sequelize db:migrate
$ sequelize db:seed:all # NOT NEED
  • Download dependencies
$ npm i
  • Run the app (dev)
$ npm start

Postman Collection

Resources

TODOs

  • Ignore "config/config.js" and "config/config.json" files
  • Add and use config variable for "device_token"