Skip to content

A boilerplate for Go using the Simple Clean Architecture

Notifications You must be signed in to change notification settings

tungdevpro/yhshop_api

Repository files navigation

YHShop Order Application

The project simulates features, purchases, and deliveries

Overview

Technology stack

  • Gin
  • GORM

Prerequisites

Before you begin, you'll need to have Go installed on your computer. You can download Go from the official Go website.

Installation

  1. Clone the project from GitHub:
git clone https://github.com/tungdevpro/coffee_api.git
  1. Add .env file
PORT=3002
HASH_SALT=your_hash_salt
DB_CONNECTION_URL="your_db_url"
SECRET_KEY=your_secret_key
S3_BUCKET_NAME="your_bucket_name"
S3_REGION="ap-southeast-1"
S3_API_KEY="your_api_key"
s3_SECRET_KEY="your_s3_secret_key"
S3_DOMAIN="your_domain_s3"
  1. For Docker
docker compose up -d
  1. Run application by command:
go run cmd/main.go
  1. Postman (Optional) Download link API PostMan

Development features

  1. Manage user tokens

  2. Push notification to user (Send notifications to all devices where the user is logged in)

Code response

1: Success -1: Have a error -2: Not verified your account

About

A boilerplate for Go using the Simple Clean Architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages