https://github.com/deoliveiraromain/task-rest-api
Structured Rest API written in Golang
https://github.com/deoliveiraromain/task-rest-api
go golang rest-api
Last synced: 6 months ago
JSON representation
Structured Rest API written in Golang
- Host: GitHub
- URL: https://github.com/deoliveiraromain/task-rest-api
- Owner: deoliveiraromain
- License: mit
- Created: 2017-01-30T23:17:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T21:40:52.000Z (about 9 years ago)
- Last Synced: 2024-06-20T14:22:41.499Z (about 2 years ago)
- Topics: go, golang, rest-api
- 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
# task-rest-api
A rest api sample written in golang.
Data persistance with mongoDB.
Purpose : CRUD for Task object.
## How-to
You can run simply without docker, but you need a mongoDB instance running :
```bash
go run main.go
```
Or run api in docker containers for both DB and application :
```bash
docker-compose up -d
```
Warning : in the compose file, you can change TASK_API_PORT value but be sure to match with mapped docker port and ApiPort in config.json.