Employees-Registration application with following features:
- Adding a record into database with all fields from manual data entry form
- Listing of all the records (possibly) currently (added ) in the database
Node.js and MySQL installed
- Clone the repo:
$ git clone https://github.com/vijaygehlot/employees-registration.git
- Add parameters in order to connect to MySQL on your machine:
Inside /index.js
paste this block of code, change user
and password
and save the file:
// Mysql Configuration---
var connection = mysql.createConnection({
host: "localhost",
user: "<USER_NAME>",
password: "<USER_PASSWORD>",
database: "<DB_NAME>"
});
- Install server-side dependencies:
$ npm install
- Install client-side dependencies:
$ cd client
$ npm install
- Build the app:
$ npm run build
- Run the app:
$ cd ..
$ npm run start
- Run both client and server:
$ cd ..
$ npm run dev
The application should now run on localhost:5000
- React
- Sass
- Node/Express
- MySQL