Node.js express RESTful API
Backend requires a .env file to specify the following environmental variables. Strings should be in doublequotes:
MYSQL_HOST = { db location }
MYSQL_PORT = { port db is served on }
MYSQL_USER = { db username }
MYSQL_PASS = { db password }
DEFAULT_DB = { name of db to use }
API_PORT = { port api should be served on }
- npm install
- nodemon api.js
- npm install
- serve via process manager (pm2 works well) with 'npm start api.js'