Skip to content

Latest commit

 

History

History
85 lines (70 loc) · 1.6 KB

README.md

File metadata and controls

85 lines (70 loc) · 1.6 KB

AutoRia Clone - NestJS Backend

Description

This project is a backend clone of AutoRia built using the NestJS framework.

Project setup

To set up the project, run:

$ npm install

Create local.env file

To do local.env file with following settings:

POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgresuser
POSTGRES_PASSWORD=postgrespassword
POSTGRES_DB=autoRia-clone

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redispassword

AWS_ACCESS_KEY=awsackey
AWS_SECRET_KEY=awssekey
AWS_S3_REGION="us-west-1"
AWS_S3_BUCKET_NAME="bucket-autoria-clone"

Run the project with watch mode

To run the project in watch mode, use:

$ npm run start:local

Debug mode

To run the project in debug mode, use:

$ npm run start:debug

Production mode

To run the project in production mode, use:

$ npm run start:prod

Docker setup

Build and start containers (local) To build and start Docker containers for local development, use:

$ npm run start:docker:local

Migrations

Create a migration To create a new migration, use:

$ npm run migration:create --name=MigrationName

Generate a migration

To generate a new migration based on changes in entities, use:

$ npm run migration:generate --name=MigrationName

Run migrations

To run all pending migrations, use:

$ npm run migration:run

Revert the last migration

To revert the last migration, use:

$ npm run migration:revert

License

This project is UNLICENSED.

Author

Oleksandr Semenets