Brazil Cities API
This is a .NET 8 project that provides a RESTful API for managing Brazil cities. The project is written in C# and uses several technologies and frameworks.
Try it out
The API is hosted on Render. You can access it at https://brazil-cities-api.onrender.com.
Swagger documentation is available at https://brazil-cities-api.onrender.com/swagger.
Technologies Used
- .NET 8: The latest version of the .NET framework, used for building high-performance, cross-platform applications.
- C#: The primary programming language used in this project.
- ASP.NET Core: A framework for building web applications.
- Entity Framework Core: An object-relational mapper (ORM) that simplifies data access by letting you work with relational data using domain-specific objects.
- PostgresSQL: The database used for persisting data.
Getting Started With Docker Compose
- Clone the repository.
- Navigate to the root directory.
- Ensure Docker is installed on your machine.
- Create a .env file in the root directory like .env.example file.
- Add the environment variables.
- Run command
docker-compose up -d
in the terminal
- The API be available at
http://localhost:8080
- Execute InitializeDataDb app to initialize database data.
License
This project is licensed under the MIT License - see the LICENSE file for details.