Skip to content

LeandroBerlin/lyricsDb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LyricsDb

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

"As slight as possible"

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



Features

  • 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

Setup & run

  • Clone the repo
  • You need a running instance of MongoDB
    mongod
  • Install the dependencies
    npm i
  • Run & Fun
    npm run dev

Npm Scripts

  • npm run dev uses nodemon (you need it global installed)
  • npm start uses node

Demo Examples

Overview - All the lyrics in DB
Single Lyric - A single lyric

Deployment on Zeit

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.

About

🎤 Minimalistic MVC CRUD with Node + Express + Mongoose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published