You must have docker and docker-compose installed on your machine.
$ cd server
$ npm install
$ cd ../client
$ npm install
$ cd ..
$ docker-compose build
$ docker-compose up
Client is running on http://localhost:3000 and server on http://localhost:9000
App deployed on http://51.158.110.183/
To populate with projet data go to : http://localhost:9000/api/v1/data/import
Check if data are uploaded by visiting : http://localhost:9000/api/v1/users
GET http://localhost:9000/api/v1/users/
Returns all users Login required
POST http://localhost:9000/api/v1/users/add-user
Create new user Login and specific role required Request body must contain at least :
- firstName,
- lastName,
- email,
- password
GET http://localhost:9000/api/v1/users/:id
Returns a specific user Login required
PATCH http://localhost:9000/api/v1/users/:id
Update a specific user Login and specific role required if trying to update an user not logged in
DELETE http://localhost:9000/api/v1/users/:id
Delete a specific user Login and specific role required
POST http://localhost:9000/api/v1/users/login
Returns a connection token Request body must contain :
- email,
- password
GET http://localhost:9000/api/v1/skills
Returns all skills Login required
GET http://localhost:9000/api/v1/skills
Returns all skills Login required
PATCH http://localhost:9000/api/v1/skills/:id
Update a specific skill Login and specific role required
DELETE http://localhost:9000/api/v1/skills/:id
Delete a specific skill Login and specific role required