mhackyu / express-mysql-cruds

Simple CRUDS operation in nodejs using express, mysql and ejs package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

express-mysql-cruds

Simple CRUDS operation in nodejs using express, mysql and ejs package.

Getting Started

Installation

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!

Built With

Author

  • Mark Christian Paderes - Initial work - mhackyu

About

Simple CRUDS operation in nodejs using express, mysql and ejs package.


Languages

Language:HTML 51.7%Language:JavaScript 48.3%