Paulehair / react-challenge-191026

Project school for a "google classroom like"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-challenge-191026

Team

Paule Herman - DevOps & chef de projet
Marion Ott - Développeuse Back
Simon Soleau - Développeur Front
Anthony Thuillez - Développeur Front
Hector Travaillé - UX/UI designer
Mehdi Verfaillie - Développeur Front
Marc Ye - UX/UI designer

Development

You must have docker and docker-compose installed on your machine.

Follow these steps to init projet :

$ 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

API routes

Users related routes

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

Skills related routes

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

About

Project school for a "google classroom like"


Languages

Language:JavaScript 67.5%Language:CSS 29.6%Language:HTML 2.1%Language:Dockerfile 0.8%