Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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) |