Welcome to the server-side code of the Employee Ease project!
-
Clone the GitHub repository to your local machine.
git clone https://github.com/AbuSuraj/EmployeeEase-server.git
-
Navigate to the project directory.
cd EmployeeEase-server.
-
Install the project dependencies using npm.
npm install.
-
Run the following command
npm start
- Endpoint:
/api/employees/
- HTTP Method:
GET
- Description: Retrieves a list of all employees in the company.
- Example:
http://localhost:5000/api/employees/
- Endpoint:
/
- HTTP Method:
POST
- Description: Adds a new employee to the company.
- Input Format:
{ "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }
- Endpoint:
/api/employees/send-email
- HTTP Method:
POST
- Description: Sends an email to one or more employees.
- Example:
http://localhost:5000/send-email
- Input Format:
{ "email": ["employee1@example.com", "employee2@example.com"], "subject": "Meeting Announcement", "body": "Dear team, we have an upcoming meeting..." }
- Brevo email sevice is used here.