The Employee Records project is a full-stack(MERN) application designed to manage employee data. It incorporates both server-side and client-side components, utilizing technologies such as Express for the server, React for the client, and MongoDB for the database. The application allows for the creation, retrieval, updating, and deletion (CRUD) of employee records.
├── client
│ ├── public
│ ├── src
│ │ ├── assets
│ │ ├── components
│ │ │ ├── Navbar.jsx
│ │ │ ├── Record.jsx
│ │ │ └── RecordList.jsx
│ │ ├── App.css
│ │ ├── App.jsx
│ │ ├── index.css
│ │ └── main.jsx
│ ├── .eslintrc.cjs
│ ├── .gitignore
│ ├── index.html
│ ├── package-lock.json
│ ├── package.json
│ ├── postcss.config.js
│ ├── README.md
│ └── tailwind.config.js
└── server
├── db
│ └── connection.js
├── routes
│ └── record.js
├── .gitignore
├── package-lock.json
├── package.json
└── server.js
- server.js: Entry point of the server application. Sets up Express server, middleware, and routes.
- routes/record.js: Defines routes for CRUD operations on employee records.
- db/connection.js: Establishes connection to MongoDB database.
- src/App.jsx: Main component of the client application. Renders Navbar and handles routing using React Router.
- src/components/Navbar.jsx: Navigation bar component for the application.
- src/components/Record.jsx: Component for creating and updating employee records.
- src/components/RecordList.jsx: Component for displaying a list of employee records.
- server/package.json: Contains dependencies and scripts for the server application.
- client/package.json: Contains dependencies and scripts for the client application.
- index.html: HTML file for the client-side application.
- index.css: CSS file for styling the client-side application.
- Clone the repository.
- Navigate to the
server
directory and runnpm install
to install server dependencies. - Create a
.env
file in theserver
directory and set up MongoDB connection URI. - Run
npm start
in theserver
directory to start the server. - Navigate to the
client
directory and runnpm install
to install client dependencies. - Run
npm run dev
in theclient
directory to start the client development server. - Access the application in your browser at
http://localhost:3000
.
- Express
- MongoDB
- React
- React Router
- Vite
- Tailwind CSS