This is the backend for the Employee App.
It connects to MongoDB Atlas and provides REST APIs for CRUD operations.
The frontend (dist folder) should be placed inside this directory — do not edit dist contents.
| Method | Endpoint | Description | 
|---|---|---|
| GET | /api/employees | Get all employees | 
| GET | /api/employees/:id | Get single employee | 
| POST | /api/employees | Add new employee | 
| PUT | /api/employees/:id | Update employee | 
| DELETE | /api/employees/:id | Delete employee | 
- Install dependencies:
npm install 
- Create a .envfile with your MongoDB Atlas URI:MONGO_URI=your-mongodb-uri PORT=5000 
- Place your frontend dist folder in this directory.
- Start the server:
npm start 
- Access the app at: http://localhost:5000