https://github.com/derek486/employee-app-mean-stack
Full-Stack application with MEAN (Mongodb, Express, Angular, Nodejs) stack
https://github.com/derek486/employee-app-mean-stack
Last synced: about 1 year ago
JSON representation
Full-Stack application with MEAN (Mongodb, Express, Angular, Nodejs) stack
- Host: GitHub
- URL: https://github.com/derek486/employee-app-mean-stack
- Owner: Derek486
- License: mit
- Created: 2024-06-04T01:48:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T23:11:42.000Z (about 1 year ago)
- Last Synced: 2025-03-23T00:19:11.675Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 341 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Employee Management App (MEAN Stack)
This project is a simple Employee Management Application built using the MEAN (MongoDB, Express, Angular, Node.js) stack. It allows users to manage employee records, including adding, updating, deleting, and viewing employees.
## ✨ Features
- Create, read, update, and delete (CRUD) employee records
- RESTful API with Express.js and MongoDB
- Frontend built with Angular
- Backend with Node.js and Express.js
- Database managed with MongoDB
## 🚀 Installation
### Prerequisites
Make sure you have the following installed:
- [Node.js](https://nodejs.org/)
- [MongoDB](https://www.mongodb.com/)
- [Angular CLI](https://angular.io/cli)
### Steps
1. **Clone the repository**
```bash
git clone https://github.com/Derek486/employee-app-mean-stack.git
cd employee-app-mean-stack
```
2. **Install backend dependencies**
```bash
cd backend
npm install
```
3. **Set up the database**
- Start MongoDB on your local machine or use a cloud service like MongoDB Atlas.
- Update the MongoDB connection string in `backend/config/database.js` if necessary.
4. **Run the backend server**
```bash
npm start
```
The backend should now be running on `http://localhost:3000/`.
5. **Install frontend dependencies**
```bash
cd ../frontend
npm install
```
6. **Run the frontend**
```bash
ng serve
```
The frontend should now be running on `http://localhost:4200/`.
## 🌐 API Endpoints
- `GET /api/v1/employees` - Get all employees
- `POST /api/v1/employees` - Add a new employee
- `GET /api/v1/employees/:id` - Get an employee by ID
- `PUT /api/v1/employees/:id` - Update an employee
- `DELETE /api/v1/employees/:id` - Delete an employee
## 📸 Preview
Here are some screenshots of the project in action:
### Employee List

### Update Form

### Form with errors and new employee

## ⚖ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## 📌 Contribution
Feel free to fork the repository and contribute by submitting a pull request.