A web APIs that helps to manage employees.
Javascript : Language used.
NodeJS : server environment.
Express : used for building fast APIs.
Heroku : Deployment.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
TO setup the project on your local machine do the following Install Node
npm install node
Install Postgres
[Postgres](http://www.postgresqltutorial.com/install-postgresql/)
Clone the repo by running
git clone https://github.com/luc-tuyishime/Employee-management.git
Then install all the necessary dependencies
npm install
Creata a .env file
Copy and Paste the DATABASE_URL
DATABASE_URL=postgres://[USERNAME]:[PASSWORD]@localhost/[DATABASE_NAME]
- URL = http://localhost:8000
- PORT = 8000
- NODE_ENV = production
- DATABASE_URL =
- PG_HOST = localhost
- PG_USER = username
- PG_DATABASE = management
- PG_PASSWORD = secretpassword
- PG_PORT = 5432
npm start
npm test
Ressource URL | Methods | Description |
---|---|---|
/ | GET | The index (welcome message) |
/api/v2/employees | POST | Create an employee |
/api/v2/users/register | POST | Register a manager |
/api/v2/users/register | POST | Login a manager |
api/v2/employee/:id | PATCH | Edit en employee |
api/v2/employee/:id | DELETE | Delete an employee |
api/v2/employees/:id/activate | PATCH | Activate an employee |
api/v2/employees/:id/suspend | PATCH | Suspend an employee |
api/v2/employees | GET | Get all employees |
api/v2/employees/search?name=frank | GET | Search employee with Name |
- Jean luc Tuyishime [email protected]
Copyright (c) Jean luc Tuyishime, Software developer