🚗👨🎓🏠 Employee CRUD Application BableshAAzad.com
This application allows you to perform basic CRUD operations
, as well as filter, sort, and search employee data. It is built using ReactJS+Vite
and stores data using a Dummy JSON server
.
🏠 Features:
- Perform basic CRUD operations.
- Sort employees based on
new to old
,old to new
,a to z
,z to a
. - Search employees by name.
🧑💻 Technologies Used:
ReactJS+Vite
react-router-dom
react-top-loading-bar
Bootstrap 5
JavaScript
HTML
CSS
💻 How to Use the Source Code:🧑💻
- Download the
main
branch as a zip file. - Import the project into your IDE and ensure Node.js is installed.
- In the root directory, open a command prompt and run:
npm install
- To store data, create a separate folder where you want to keep your data. Open this new folder in the command prompt and enter
npm install json-server
. For more information, visit JSON-Server. - Inside your database folder, create a file named
db.json
. - Add the following content to your
db.json
file:
{
"employeedb": []
}
- In the root directory of your database folder, open a command prompt and enter:
npx json-server db.json
. - Your dummy database server is now ready to use. See the image below for the server running view 👇.
- Now, your ReactJS+Vite project is ready to use. In the root folder of your ReactJS+Vite application, open a command prompt and type:
npm run dev
- Json Server endpoint : http://localhost:3000/employeedb
Response:
{
"employeedb": [
{
"id": "e0ca",
"firstName": "BABLESH",
"lastName": "AAZAD",
"email": "aazadbablesh@gmail.com",
"mobile": "8319316077",
"age": "28",
"address": "Benglore India",
"gender": "male"
},
{
"id": "123d",
"firstName": "Durgesh",
"lastName": "AAZAD",
"email": "durgesh@gmail.com",
"mobile": "7898300817",
"age": "32",
"address": "Tundri Chhattisgarh India",
"gender": "male"
}
]
}