You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nicolas-arnaud
042e6879b1
|
2 years ago | |
---|---|---|
back | 2 years ago | |
front | 2 years ago | |
.env_sample | 2 years ago | |
.gitattributes | 2 years ago | |
.gitignore | 2 years ago | |
Makefile | 2 years ago | |
Makesudo | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago |
README.md
Transcendence
Instructions:
If you not use rootless docker, either rename Makesudo as Makefile or call make
with -f Makesudo
.
Rules:
- prod: build and lauch client and server on builded resources.
- dev: launch client and server without build using nest and vite.
- check: format and lint back and check front.
- debug: launch back with debug flags.
Setting:
rename .env_sample to .env and customize it to your needs and credentials.
Back endpoints:
Method | endpoint | description | account securised? |
---|---|---|---|
GET | /log/in | the login using 42 api. | ☑ |
GET | /log/inReturn | the 42 api callback. | ☑ |
GET | /log/profile | get connected user 42's datas. | ☑ |
GET | /log/out | log out user. | ☑ |
GET | /all | return all users publics datas. | ☒ |
GET | /online | return all online users's public datas. | ☒ |
GET | /friends | return users which are friends. | ☑ |
GET | /invits | return users which invited user to be friend. | ☑ |
GET | /leader | return the global leaderboard | ☑ |
GET | /leader/:id | return the user(id) place in leaderboard | ☑ |
GET | /history | return the matchs results sorted by date | ☑ |
GET | /history/:id | return the last user(id)'s results sorted by date | ☑ |
POST | /avatar | set a user() avatar with multipart post upload. | ☑ |
GET | /avatar | return the user() avatar | ☒ |
GET | /user/:name | return the user(name) | ☒ |
POST | /invit/:id | user() invit user(id) as friend. | ☑ |
GET | /avatar/:id | return the user(id)'s avatar | ☒ |
GET | /:id | return user(id) public datas | ☒ |
POST | /:id | update/create user(id) | ☑ |
GET | / | return user()' public datas | ☑ |
POST | / | update/create user() | ☑ |
Dependencies:
Front:
Back:
- @nestjs/cli
- @nestjs/common
- @nestjs/core
- @nestjs/platform-express
- @nestjs/platform-ws
- @nestjs/schematics
- @nestjs/testing
- @nestjs/websockets
- @types/express
- @types/jest
- @types/node
- @types/supertest
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint
- eslint-config-prettier
- eslint-plugin-prettier
- jest
- prettier
- reflect-metadata
- rimraf
- rxjs
- source-map-support
- supertest
- ts-jest
- ts-loader
- ts-node
- tsconfig-paths
- typescript
- ws