- Node.js
- Express.js
- React.js
- MySQL
- Start Apache and MySQL server from XAMPP
- Goto
http://127.0.0.1/phpmyadmin/
and import the database file from/docs/express_mysql_crud.sql
- Start Apache and MySQL server from XAMPP
- Goto
http://127.0.0.1/phpmyadmin/
and create a database calledexpress_mysql_crud
- Run the create query into the MySQL server for creating
users
table.
CREATE TABLE users (
id int PRIMARY KEY AUTO_INCREMENT,
name varchar(255),
username varchar(255),
email varchar(255),
avatar varchar(255),
role varchar(255) DEFAULT 'admin',
password varchar(255),
status boolean,
attempt int
);
- Run the insert query into the MySQL server for inserting a row into
users
table.
INSERT INTO `users`(`name`, `username`, `email`, `avatar`, `role`, `password`, `status`, `attempt`) VALUES ('admin','admin','admin@app.com','','admin','11111',true,0)
- clone this repo.
git clone https://github.com/MdEstiakAhmed/crud-express-mysql.git
- goto
user_management_server
folder and runnpm install
- then start server with
npm run dev
- after that goto
user_management_client
folder and runnpm install
- then start server using
npm start
- now open this
http://127.0.0.1:3000
in a browser and enjoy
password | ||
---|---|---|
User-1 | admin@app.com | Aa_10000 |
User-2 | admin2@app.com | Aa_10000 |
User-3 | admin3@app.com | Aa_10000 |