Nest framework TypeScript starter repository.
# docker-compose up build command.
$ yarn compose:up
$ yarn
# Development mode
$ yarn start
# Watch mode
$ yarn start:dev
# Production mode
$ yarn start:prod
# Run unit tests
$ yarn test
# Run end-to-end tests
$ yarn test:e2e
# Generate test coverage
$ yarn test:cov
# Run tests in watch mode
$ yarn test:watch
This project includes an interactive API documentation using Swagger UI, which provides a convenient way to explore and test the API endpoints.
To access the Swagger UI:
- Ensure the application is running (either locally or in a Docker container).
- Open a web browser and navigate to http://localhost:3000/api/.
- Interactive Documentation: View detailed information about all API endpoints, including HTTP methods, request parameters, and response.
- Schema Visualization: Swagger provides a clear visualization of the API's data models.
- Endpoints List: The main page lists all available API endpoints grouped by resource type.
- Endpoint Details: Click on any endpoint to expand its details. so you can view the request format, required parameters, and response schema.
-
Authentication: If the API requires authentication, you can add authentication tokens or credentials as needed (I left the token key in the description first line, so please use it to access any api under Users collections).
-
Customization: Modify request parameters as required to test different scenarios.
-
Demo-Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImVtYWlsIjoiU2VsZW5hLlBoYW1AaGF5cy5jby5qcCIsImV4cCI6MTczNjM0MjMxNn0.gaD3SyxT7UwVm5kUMUhtDhHEpxmQ4cCq7v5S3qXN-VQ
The Swagger UI is only accessible when the application is running and is configured to include Swagger.
Nest is MIT licensed.