- Docker
- Docker Compose
- Node.js >=18.0 or NVM
- For NVM, run
nvm install 18.0
andnvm use 18.0
in the project root directory
- For NVM, run
- Intra Account and Application
- Give the Application a name
- Give the Application a redirect URI
- The URI should be
http://localhost:8000/auth/42/callback
- The URI should be
- Clone the repository
- Copy the
envs/.tokens.env.example
file toenvs/.tokens.env
:- Copy the UID and SECRET to the
envs/.tokens.env
file and fill theBACKEND_42_CLIENT_ID
andBACKEND_42_CLIENT_SECRET
variables, respectively.
- Copy the UID and SECRET to the
- Run
make env
to create the appropriate.env
file in all the required directories- The command requires an
mode
argument, which will correspond to the.env.<mode>
, by default it isdevelopment
.
- The command requires an
- Run
make setup
to download and setup:- PNPM
- NestJS CLI
- Download client dependencies
- Download server dependencies
- Setup prisma types & database schema
most of these commands need to be in seperate terminals
make client_dev
to run the client in development modemake server_dev
to run the server in development modemake db_studio
to see the database in the browser
- Update the
envs/.env.<mode>
file to add/update/remove environment variables - Run
make env
to update the.env
files in all the required directories - Edit the
typings/env.d.ts
file to add/update/remove environment variables types - Restart the server/client to apply the changes
- Edit the
server/prisma/schema.prisma
file to update the database schema - Run
make db_generate
to generate the database schema - Run
make db_migrate
to apply the changes to the database - Run
make db_studio
to see the database in the browser
- Browse through dev/clothing-showcase or search directly in this archive
- After having the clothId, confirm if it is a _back asset or not
- Run the command
make client_gen_clothing id=<clothId> [back=true]
to generate the clothing - To test, add to the bought list in this file
- If you're unsure about the category, try to check it here