A minimalistic MVC (Model-View-Controller) Web Application with CRUD (create, read, update, delete) functionaly created with Node.js / MongoDB & Mongoose.js / Express.js and JSON
API uthentication is provided using Json Web Token & Bcrypt
Since Express >= 4.16.0, body parser has been re-added under the methods express.json() and express.urlencoded(), this web app use only 2 dependency: Express & Mongoose
- Database seeding with sample data
- Express 4 Middleware
- Response Object as JSON
- MVC (Model-View-Controller)
- CRUD (create, read, update, delete)
- Password Hashing
- JWT Authentication
- Zeit Now deployment configuration
- Clone the repo
- You need a running instance of MongoDB
mongod
- Install the dependencies
npm i
- Run & Fun
npm run dev
npm run dev
uses nodemon (you need it global installed)npm start
uses node
Overview - All the lyrics in DB
Single Lyric - A single lyric
In order to deploy your app on Zeit Now you need to create a database reachable from the Internet first.
You can use the free service of Mongo Atlas. You'll also need to edit the mongose.connect() method in controller/database
to use your Mongo Atlas credentials.