Skip to content

niksis02/nestjs-task

Repository files navigation

Description

This is a simple authentication api for the users created with Nest.js.

  1. The project uses MVCS as the main architecture.
  2. The RDBMS is MySQL. The project uses docker image as the main database.
  3. Prisma is the main ORM.
  4. The project does not include any unit, integration or e2e test.

Installation

$ yarn install

Instructions to run the application

  1. Create .env file in the project root directory and fill with the necessary variables(see .env.local file)
# Set up the database
$ docker-compose up

# Apply the migrations
$ npx prisma db push

# Run the application

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Available API endpoints

  1. [POST] /auth/signUp # User login
  2. [POST] /auth/signIn # User registration
  3. [GET] /user # Get user data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published