Skip to content

Mini E-commerce in Golang using the Fiber framework, MySQL, Redis, JWT authentication, and seamless integration with the Midtrans payment gateway

Notifications You must be signed in to change notification settings

zakariawahyu/go-mini-ecommerce

Repository files navigation

GO Mini Ecommerce ✨

Entity Relationship Diagram

ERD

Technologies - Libraries

This app required 2 database connection

# run postgreSQL
docker run -d -p 3306:3306 mysql -e MYSQL_ROOT_PASSWORD=masukdb -e MYSQL_DATABASE=go_mini_ecommerce

# run redis
docker run -d -p 6379:6379 redis --requirepass "masukredis"

Runing App

  1. Copy config.example.yaml to config.yaml and fill the config
App:
    Name:
    Version:
    Port: :
    Environment:
    Timeout:

Mysql:
    Host:
    Port:
    User:
    Password:
    DbName:
    MaxIdleConnection:
    MaxOpenConnection:

Redis:
    Host:
    Port:
    Password:

Jwt:
    SecretKey:

Midtrans:
    ServerKey:
  1. Runing app docker-compose.yaml
$ docker docker-compose up -d --build
  • After run this, don't forget to check all container are successfully started

Swagger Docs

http://localhost:4545/swagger/index.html

About

Mini E-commerce in Golang using the Fiber framework, MySQL, Redis, JWT authentication, and seamless integration with the Midtrans payment gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published