Skip to content
generated from dinorain/useraja

Go REST example for product checkout service, supported with authentication module.

Notifications You must be signed in to change notification settings

dinorain/checkoutaja

Repository files navigation

Checkoutaja: Go REST example for product checkout service

What have been used:

  • sqlx - Extensions to database/sql.
  • pgx - PostgreSQL driver and toolkit for Go
  • JWT - A Go implementation of JSON Web Tokens.
  • viper - A Go configuration with fangs
  • go-redis - Redis client for Golang
  • zap - Logger
  • validator - Go Struct and Field validation
  • migrate - Database migrations. CLI and Golang library.
  • testify - Testing toolkit
  • gomock - Mocking framework
  • CompileDaemon - Compile daemon for Go
  • Docker - Docker

Docker compose files:

docker-compose.local.yml
docker-compose.dev.yml

Docker development usage:

make develop

Local development usage:

make local
make run

Swagger:

http://localhost:5001/swagger/

Test Accounts:

Admin

curl -X POST                                                   \
    -d '{
        	"email": "admin@gmail.com",
        	"password": "admin"
        }' \
    http://139.162.55.156:5001/swagger/index.html#/Users/post_user_login

Seller

curl -X POST                                                   \
    -d '{
        	"email": "seller@gmail.com",
        	"password": "seller"
        }' \
    http://139.162.55.156:5001/swagger/index.html#/Sellers/post_user_login

Buyer

curl -X POST                                                   \
    -d '{
        	"email": "djourdan555@gmail.com",
        	"password": "hello"
        }' \
    http://139.162.55.156:5001/swagger/index.html#/Users/post_user_login

Releases

No releases published

Packages

No packages published

Languages