For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
-
Just go on official Node.js website and download the installer. Also, be sure to have
gitavailable in your PATH,npmmight need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm
$ git clone https://github.com/logiconllc/node-mvc-template/
$ cd global-pass-backend
$ yarn install
$ yarn server:local //for local
$ yarn server:dev //for development
$ yarn server:prod for production
change file (.env.local example) to (.env.local)
PORT=8070 MONGO_URL= JWT_SECRET=
GOOGLE_ACCESS_TOKEN=
EMAIL_HOST= EMAIL_USER= EMAIL_USER_PASSWORD=
S3_ACCESS_KEY_ID= S3_SECRET_ACCESS_KEY= S3_REGION= s3_BUCKET_NAME=
$ 404 => recode not found.
$ 403 => validation error.
$ 201 => record created.
$ 200 => success response.
$ 406 => server validation error.
$ 500 => server error.