https://github.com/josesalasdev/beer-api
Challenge beer api
https://github.com/josesalasdev/beer-api
Last synced: over 1 year ago
JSON representation
Challenge beer api
- Host: GitHub
- URL: https://github.com/josesalasdev/beer-api
- Owner: josesalasdev
- License: mit
- Created: 2022-01-11T20:46:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T01:41:27.000Z (over 4 years ago)
- Last Synced: 2025-03-12T02:01:52.833Z (over 1 year ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Beer API
Challenge beer API
## Run project 🚀
```bash
export CURRENCY_API_SECRET=YourKeySecret
export POSTGRES_PASSWORD=password
Docker-compose up
```
This command creates and raises the api for the port `8080` and a database postgres for the port `5432`, you can consume the service from the following url [http://localhost:8080](http://localhost:8080), for more information about accesses check [docker-compose.yml](./docker-compose.yml).
## Docs
If you want to generate the swagger documentation, execute the following command `make doc` but if you want to view it, you just have to have the service above and enter the following url
[http://localhost:8080/swagger/index.html#/](http://localhost:8080/swagger/index.html#/)