This project is a NestJS-based backend application that provides information about countries. It fulfills the requirements of the Full-Stack JS engineer test assessment for the Country Info App.
- Endpoint to get available countries
- Endpoint to get detailed country information including:
- Border countries
- Population data
- Flag URL
- Backend Tech Stack: Node.js with NestJS
- Get Available Countries Endpoint: Implemented in
CountriesService
andCountriesController
- Get Country Info Endpoint: Implemented in
CountriesService
andCountriesController
- Environment Variables: Configured using
@nestjs/config
- Code Quality: ESLint and Prettier are set up
- Documentation: This README and Swagger API documentation
- Testing: Unit tests and e2e tests are implemented
- Error Handling: Implemented using NestJS exceptions
npm install
npm run start
npm run start:dev
npm run start:prod
npm run test
npm run test:e2e
npm run test:cov
After starting the application, you can access the Swagger API documentation at:
http://localhost:3000/api
Create a .env
file in the root directory and add the following:
PORT=3000
This project is MIT licensed.