Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ai285063/member-app-using-go-gin
Practice: member system api w/ CRUD using Golang and Gin framework. Can be easily started using docker-compose.
https://github.com/ai285063/member-app-using-go-gin
docker docker-compose gin-gonic go golang
Last synced: 2 months ago
JSON representation
Practice: member system api w/ CRUD using Golang and Gin framework. Can be easily started using docker-compose.
- Host: GitHub
- URL: https://github.com/ai285063/member-app-using-go-gin
- Owner: ai285063
- Created: 2021-11-15T06:39:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T06:03:00.000Z (about 3 years ago)
- Last Synced: 2024-08-03T23:27:36.305Z (6 months ago)
- Topics: docker, docker-compose, gin-gonic, go, golang
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - member-app-using-go-gin - compose. (Repositories)
README
# CRUD Member Api using Go, Gin framework and Docker
### Environment Requirements:
- MySQL v1.1.3
- Redis v8.11.4
- optional: Docker### Installing steps:
1. Clone project
```shell
git clone https://github.com/ai285063/member-app-using-go-gin.git
```2. Start testing by setting up containers using docker-compose
```shell
cd member_app_gin
docker-compose up
```3. Test routes on Postman
### Routes:
| Method | | Route |
|---|---|---|
| GET | get all users | [localhost:8080/users](http://localhost:8080/users) |
| POST | create new register
- required fields in body: account, email, password | [localhost:8080/users/register](http://localhost:8080/users/register) |
| PUT | update user | [http://localhost:8080/users/:id](http://localhost:8080/users/:id) |
| DELETE | delete user | [http://localhost:8080/users/:id](http://localhost:8080/users/:id) |