Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gustavohenriqueschmitz/countries-api

API to register countries, relating their states and cities.
https://github.com/gustavohenriqueschmitz/countries-api

api docker golang postgresql

Last synced: about 1 month ago
JSON representation

API to register countries, relating their states and cities.

Awesome Lists containing this project

README

        

# Countries API

## About the project
An API for registering of countries. Where you can register countries with their states and respective cities. With Post, Put, Get and Delete routes.

## Used technology
- Golang
- Docker-Compose
- PostgreSQL

## Installation

### Project clone

```
git clone https://github.com/GustavoHenriqueSchmitz/Countries-API.git
```

### Install Golang V1.18.1 and Docker-Compose
Download Link: [Golang](https://go.dev/dl/)
Donwload Link: [Docker-Compose](https://docs.docker.com/compose/install/)

### Install Dependencies
```
go mod download
```

## Running App
**1 -** Open a terminal and run in the root directory of the project the command
```
docker-compose up
```

**2 -** Open another terminal and run in the root directory of the project the command
```
go run main.go
```

## Author
**Gustavo Henrique Schmitz**

**Linkedin:** https://www.linkedin.com/in/gustavo-henrique-schmitz
**Portfolio:** https://gustavohenriqueschmitz.com
**Email:** [email protected]