That Restful API developed with Node.JS and Express
- Express Generator Setup
npm install -g express-generator
express .
express <APP FOLDER NAME>
- Port Settings
bin/www.js
default port: 3000
edit port: 8080
- Localhost Cors bug fix => Access-Control-Allow-Origin...
npm install cors --s
Clone this folder and install dependencies.
mkdir moviepedia_backend
cd moviepedia_backend
git init
git clone https://github.com/armaganbayraktar01/moviepedia_backend.git
npm install
Create a file named ".env" in the root directory and fill its contents as follows.
DB_USERNAME = DB USER USERNAME
DB_PASS = DB USER PASSWORD
DB_HOST = xxxxxx
DB_NAME = xxxxxx
API_SECRET_KEY: JWT TOKEN SECRET KEY
npm start
npm dev
npm stop
npm test