This rest api created for a simple blogging platform with all the rest api standards. And also used MySQL and the database and node-mysql as the ORM. Because Mongoose has a very good support at MySQL. And also we have used following npm packages to create this rest api in a useful and structural way.
- "bcrypt-nodejs": "0.0.3"
- "body-parser": "^1.14.0"
- "cors": "^2.7.1"
- "express": "^4.13.3"
- "jsonwebtoken": "^5.0.5"
- "node-mysql": "^4.1.8"
- "morgan": "^1.6.1"
- NodeJS
- MySQL server
- SQL query browser for speed developing.
Run npm install at the root folder to download dependencies. Then run "node server.js" to run the application. And make sure your MySQL server is running.
See the config.js file for more configuration options.