Online demo available on Hapi REST Example Valid before 2017-04-27
Node.js 6.0+
- Install dependencies:
npm install
- Import database to your MySQL from course.sql in this project.
- Open index.js and set MySQL options:
options: {
host: "127.0.0.1",
user: "yourusername",
password: "yourpassword",
database: "course",
port: "3306"
}
- Start server:
node index.js
or
npm start
- Visit:
localhost:3100