https://github.com/vvelikodny/sample-go-rest-api-project
https://github.com/vvelikodny/sample-go-rest-api-project
docker go golang rest-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vvelikodny/sample-go-rest-api-project
- Owner: vvelikodny
- Created: 2020-01-18T16:31:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T08:35:56.000Z (over 6 years ago)
- Last Synced: 2025-01-23T06:13:18.694Z (over 1 year ago)
- Topics: docker, go, golang, rest-api
- Language: Go
- Size: 43.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/vvelikodny/sample-go-rest-api-project/actions)
## Getting Started
```shell
# checkout the project
git clone git@github.com:vvelikodny/sample-go-rest-api-project.git
cd sample-go-rest-api-project
# fetch deps
go mod vendor
```
## Run through docker-compose (recommend)
```
# docker-compose up -d
```
## Run through make
```
# start a PostgreSQL database server in a Docker container
make db-start
# migrate DB
make migrate
# run the RESTful API server
make run
```
At this time, you have a RESTful API server running at `http://127.0.0.1:3000/`.
## REST API Tests, DB should be started
```
# run tests
make test
```