/express-waterline-mysql

Basic example of Express.js + WaterLine ORM for MySQL

Primary LanguageJavaScript

Express.js + Waterline ORM (MySQL)

Basic example of Express.js + WaterLine ORM for MySQL

Prerequisites

  • Node 6.13
  • Express 4.15.2
  • WaterLine 0.11.11

How do I start?

  1. Clone this repository
  2. npm install
  3. Set user and password to connect with your mySql database in the following file config/connections.js
  4. Run db_utils.js file node db_utils.js to create mySql database and insert some users
  5. npm start
  6. Browse to http://localhost:3000 (or whatever your port is)