Simple CRUDS operation in nodejs using express, mysql and ejs package.
IMPORTANT: Before you start, download store.sql here and import it to your localhost.
Step 1: Clone this project.
$ git clone https://github.com/mhackyu/express-mysql-cruds.git
Step 2: Go to express-mysql-cruds directory
$ cd express-mysql-cruds
Step 3: Run:
$ npm install
Step 4: Configure database src/db/db.config.js
const connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'password',
database: 'store'
});
Step 5: Run the server
$ npm start
Step 6: Browse localhost:4000
And you're done!
- Mark Christian Paderes - Initial work - mhackyu