Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.46 KB

README.md

File metadata and controls

50 lines (35 loc) · 2.46 KB

CRUD with Node.js

This project contains basic structure for node.js and it was implementing with libraries for best practices of develop.

Libraries 🛠️

  • npm - Management of packages and tools.
  • node.js - Runtime environment.
  • express - Infrastructure of development for web.
  • express-session - Create session for share with middlewares and save data in stored server-side.
  • express-handlebars - Template engines of views.
  • mysql - Driver for mysql.
  • express-mysql-session - Create a database table to save session data.
  • express-validator - Validate and sanitize data for express.js.
  • morgan - HTTP request logger middleware.
  • nodemon - Tool that helps develop applications by automatically restarting the node.js applications.
  • passport - Authentication middleware for node.js.
  • passport-local - Lets you authenticate using a username and password in your node.js applications.
  • connect-flash - Used for storing message, message are written to the flash and cleared after being displayed.
  • timeago.js - Plugin that make it easy to support automatically updating fuzzy timestamps.

Installation 📥

Before installing, download and install Node.js Node.js 0.10 or higher is required.

Install modules and libraries required

$ npm install

To execute this project you need mysql.

You can install service of mysql directly in your machine or install a local server for example.

Database 💾

Once executed mysql service you need create database named 'crud_books' and import .sql file located in folder db-dump/crud_books.sql.

To run this project execute

$ npm run dev

License 🔥

Copyright © 2019-present Oscar Amado 🧔