Skip to content

ftmjr/transcendance-backend

Repository files navigation

Nest Logo

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

Prisma

https://www.prisma.io/docs/getting-started/setup-prisma/start-from-scratch/relational-databases-typescript-postgresql

# Launch web database visualizer
yarn prisma studio 

Developement workflow

How to create a new feature

# start from develop branch
$ git checkout develop

# Create a new branch
$ git checkout -b branch-name

# Commit your changes
$ git commit -am 'Add some feature'

# Push to the branch
$ git push origin branch-name

# Create a new Pull Request

How to develop

  1. Start the docker container with the database, it will be open on 5432 port

      docker compose -f path_to/docker-compose.yml -p transcendance up -d db
  2. Start the backend

    1. Check the right url for datasource in prisma/schema.prisma
    2. Start the backend
        yarn start:dev

About

Backend for transcendance 42 project using Nest.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages