A simple CRUD application using NestJS, TypeORM, and MariaDB.
This project is an educational project to learn how to use TypeORM with NestJS, I learned a lot and hope this project can help you too.
Install the dependencies with:
yarn# development
yarn start
# watch mode
yarn start:dev
# production mode
yarn start:prod# unit tests
yarn test
# e2e tests
yarn test:e2e
# test coverage
yarn test:covYou can see the API documentation at the repository wiki.
You can enable swagger in the environment variable file by setting the SWAGGER variable to true.
Swagger will be available at the path /api by default, you can change this path by setting the SWAGGER_PATH variable.
| Variable | Description | Default |
|---|---|---|
| API_PORT | Port to run the application | 3000 |
| API_ADDRESS | Address to run the app | 0.0.0.0 |
| DB_HOST | Database host | localhost |
| DB_PORT | Database port | 3306 |
| DB_USERNAME | Database username | - |
| DB_PASSWORD | Database password | - |
| DB_NAME | Database name | - |
| DB_TEST_NAME | Database test name for E2E tests | - |
| DB_SYNCHRONIZE | Database synchronize | true |
| SWAGGER_PATH | Swagger path | /api |
| SWAGGER | Enable swagger | false |
This project is licensed under the MIT LICENSE.