This project is a backend clone of AutoRia built using the NestJS framework.
To set up the project, run:
$ npm install
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"
To run the project in watch mode, use:
$ npm run start:local
To run the project in debug mode, use:
$ npm run start:debug
To run the project in production mode, use:
$ npm run start:prod
Build and start containers (local) To build and start Docker containers for local development, use:
$ npm run start:docker:local
Create a migration To create a new migration, use:
$ npm run migration:create --name=MigrationName
To generate a new migration based on changes in entities, use:
$ npm run migration:generate --name=MigrationName
To run all pending migrations, use:
$ npm run migration:run
To revert the last migration, use:
$ npm run migration:revert
This project is UNLICENSED.