Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonybudianto/go-rest-starter
📦 Golang REST starter, dockerized
https://github.com/antonybudianto/go-rest-starter
docker docker-compose go go-modules golang gomod gomodule rest-api
Last synced: 4 months ago
JSON representation
📦 Golang REST starter, dockerized
- Host: GitHub
- URL: https://github.com/antonybudianto/go-rest-starter
- Owner: antonybudianto
- Created: 2018-04-29T04:33:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-12T15:20:13.000Z (over 2 years ago)
- Last Synced: 2024-04-11T21:11:08.101Z (10 months ago)
- Topics: docker, docker-compose, go, go-modules, golang, gomod, gomodule, rest-api
- Language: Go
- Homepage:
- Size: 2.58 MB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-rest-starter
A starter for a Golang REST API.
## Getting started
You can use Docker and docker-compose for development
```sh
cp .env.example .env
docker-compose up
```- Try visiting http://localhost:8080/ for adminer (see .env.example for DB login)
- Click "SQL Command", and copy content from `./files/db/create_table.sql` there, and click "Execute"
- Finally, visit http://localhost:8000/api/users to get the users.### SSH
```sh
$ docker exec -it /bin/sh
$ docker-compose exec api sh
```## Production
```sh
docker-compose -f docker-compose.production.yml build
docker-compose -f docker-compose.production.yml up
```## Credits
https://github.com/ilourt/gocker
## License
MIT