Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plh97/golang-api
Application
https://github.com/plh97/golang-api
docker-compose golang mongodb nginx restful-api vue
Last synced: 6 days ago
JSON representation
Application
- Host: GitHub
- URL: https://github.com/plh97/golang-api
- Owner: plh97
- Created: 2019-06-27T01:19:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T12:04:05.000Z (about 2 years ago)
- Last Synced: 2025-01-20T02:47:46.200Z (10 days ago)
- Topics: docker-compose, golang, mongodb, nginx, restful-api, vue
- Language: Go
- Homepage: http://207.148.118.120:8001/
- Size: 133 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoLang Reatful API
## Run Command
```bash
# start
docker-compose up
# restart
docker-compose up --build
# stop
docker-compose stop
# remove
docker-compose rm
# has no memory
docker system prune
```## Restful Api
```bash
http://localhost:8000/api/book/:id // PATCH # update books
http://localhost:8000/api/book/:id // GET # get book
http://localhost:8000/api/book // GET # get books
http://localhost:8000/api/book/:id // DELETE # delete books
http://localhost:8000/api/book // POST # create books
```