API for quizza.live.
Technologies used : NestJS, TypeORM, MySQL, Docker.
- Docker and Docker Compose
- Node.js
- Yarn package manager
Create a .env file in the root directory based on this .env.example file.
- Start the application:
docker-compose up -d- Watch logs:
docker-compose logs -f app- Stop the application:
docker-compose down# From your local machine
yarn migration:generate ./src/db/migrations/MigrationName
# From within the container
docker-compose exec app yarn migration:generate ./src/db/migrations/MigrationNameyarn migration:create ./src/db/migrations/MigrationName# From your local machine
yarn migration:run
# From within the container
docker-compose exec app yarn migration:runyarn migration:revert- Install dependencies:
yarn- Start the development server:
yarn start:devyarn build- Build the applicationyarn start- Start the applicationyarn start:dev- Start with hot-reloadyarn lint- Lint the codebaseyarn test- Run testsyarn test:e2e- Run end-to-end tests