Projet de creation d'une site de rencontre en express, react et postgre.
docker-compose -f docker-compose.yml up -d
- run database.sql
cp .env.example .env
npm i
npm run seed
cp .env.example .env
npm i
npm start
Method | url | Description |
---|---|---|
POST | /auth/login | Login |
POST | /auth/register | Register |
POST | /auth/check | Check if login |
POST | /action/like | Like a user |
POST | /action/report | Report User |
POST | /action/block | Block User |
GET | /users/matchs | Get my match |
GET | /users/offer | Get a next user |
POST | /users/search | Search user |
POST | /users/visit | Visit a user |
POST | /users/bihistory | List of visit,like,matchs |
GET | /profil/me | Get my info |
POST | /profil/setinfo | Set Info after register |
POST | /profil/changepassword | Change Password |
POST | /profil/changemail | Change Mail |
POST | /profil/setlocation | Set location |
POST | /profil/readnotif | Read Notif |
POST | /profil/image | Upload Image |
DEL | /profil/image | Delete Image |
GET | /no/validmail/:key | Valid Mail |
POST | /no/resetpass/:key | Reset Password |
POST | /no/askreset | Ask Reset Password |
GET | /message/room | Get all message |
POST | /message/send | Send a message |