E-commerce-project - RESTFUL API for TakTuku an E-Commerce App created for the purpose of study

About The Project

RESTFUL API for TakTuku an E-Commerce App created for the purpose of study.

Building the project with layered architecture, and clean code approach for the structure, with the intention of simplicity when the app is scaling up and ease of maintenance

(back to top)

Built With

This project structure is built using

  • Swagger
  • [Golang]
  • [Mysql]
  • [Labstack/Echo]

(back to top)

Features

  • USERS CRUD
  • PRODUCT CRUD
  • CART CRUD
  • ORDER CR

Folder Structure

├── addMiddleware/                  # Create middleware
├── config/                         # Configuration to connect to database
├── controller/                     # Create controller for user, product, cart, and order
├── entities/                       # Create entities for user, product, cart, and order
├── helper/                         # Create request, response, and helper for user, product, cart, and order
├── repository/                     # Get all required data from database for user, product, cart, and order
├── service/                        # Create service for handle the data from repository of user, product, cart, and order

Getting Started

To start project, just clone this repo

Installation

  1. Clone the repo
    git clone https://github.com/hilmihi/e-commerce-project.git
  2. Create .env file in main directory
    touch .env
  3. Write the following example environment
    export DB_CONNECTION_STRING='root:[fillpasswordhere]@/[schema name]?charset=utf8&parseTime=True&loc=Local'
    
  4. Run the server
    source .env && go run main.go

(back to top)

Owner
Muhamad Hilmi Hibatullah
Learner
Muhamad Hilmi Hibatullah
Similar Resources

Restful Api Endpoints With Golang

REST API Endpoints records(POST) fetch data from mongodb in-memory(POST) create key value pair in-memory in-memory/:key (GET) key valeu pair from in-m

Aug 22, 2022

Gin-easy-todo - golang 의 RESTful API 프레임워크 gin 을 활용해 아주 간단한 Todo 애플리케이션을 만들어보자.

Gin-easy-todo - golang 의 RESTful API 프레임워크 gin 을 활용해 아주 간단한 Todo 애플리케이션을 만들어보자.

목차 1. 요약 2. 목표 3. API 목록 4. 프로젝트 구조 5. 패키지 별 기능과 관계 6. 사전 작업 6.1. DB, Table 생성 6.2. 모듈 생성 6.3. 패키지 다운로드 7. Gin 작성 7.1. 데이터베이스 설정 7.2. 테이블, 스키마 정의 7.3.

Jan 2, 2022

Tutorial: Developing a RESTful API with Go and Gin

Tutorial: Developing a RESTful API with Go and Gin https://go.dev/doc/tutorial/w

Jan 17, 2022

A RESTful API written in Golang to store and retrieve ticket information.

Tickets-API A RESTful API written in Golang to store and retrieve ticket information. This is a RESTful API built on top of the gin-gonic/gin package

Jan 31, 2022

A daemon that has the purpose of installing and removing policies as they are laid in a specific directory

selinuxd This a daemon that has the purpose of installing and removing policies as they are laid in a specific directory. This directory is /etc/selin

Dec 14, 2022

Super lightweight, easy-to-develop, general purpose golang framework

Super lightweight, easy-to-develop, general purpose golang framework 🔥

Jun 14, 2022

記帳-PWA-web-app (Bookkeeping-PWA-web-app)

記帳-PWA-web-app (Bookkeeping-PWA-web-app)

GoKeep (bookkeeping web app) 記帳-PWA-web-app (Bookkeeping-PWA-web-app) demo link : https://bookkepping.herokuapp.com/ 測試用帳密 : tester002 , tester002 (亦可

Jan 31, 2022

A collection of themes created by the Hugo community

Hugo themes A collection of themes created by the Hugo community. Builds to themes.gohugo.io. Having questions? Have a look at the FAQ first. Adding a

Dec 17, 2022

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Echo including CRUD operations, authentication, routing, pagination, and more.

Jan 6, 2023
Api-e-commerce - Golang fiber e commerce template

Golang fiber e commerce template Stack Golang v1.17 Fiber v2.24.0 Validation v10

May 7, 2022
Ecommerce-api - Rest api of e-commerce web application
Ecommerce-api - Rest api of e-commerce web application

E-commerce Rest API Swagger documentation to test api Domain diagram

Jan 2, 2023
Project E-Commerce Alta Store Program Immersive Back End Batch 4
Project E-Commerce Alta Store Program Immersive Back End Batch 4

Project E-Commerce Project E-Commerce Alta Store Program Immersive Back End Batch 4 Explore the docs » Daftar Isi About The Project Built With ERD Con

Dec 30, 2021
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database
A restful api's with Gin Framework with a structured project that defaults to PostgreSQL database

Welcome to Golang Gin boilerplate v2 The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQ

Oct 15, 2021
Make e-commerce API using Golang

E-Commerce API i make this api using golang with gin How to use this Please create database go-ecommerce, or if u not it will error. For table, it wil

Oct 2, 2022
Fully serverless CAPTCHA API created with API Gateway, Lambda, Dynamodb and Go
Fully serverless CAPTCHA API created with API Gateway, Lambda, Dynamodb and Go

Fully serverless CAPTCHA API created with API Gateway, Lambda, Dynamodb and Go

Mar 4, 2022
Rental-api - A RESTful-API that allows developers to connect to data about rental properties

Rentals-API is a RESTful-API that allows developers to connect to data about rental properties.

Jan 24, 2022
Go-gin-mongo-api - A backend RESTful API built using golang, gin and mongoDB

go-gin-mongo-API This is a RESTful backend API which is developed using the gola

Jul 19, 2022
Restful API example with using go and gin framework

simple device api Simple Device API is really simple and concise to show how easy to implement a Restful Service with using Golang. It uses gin framew

Nov 18, 2021
A simple RESTful API for storing and retrieving data during MRI image reconstructions

MRD Storage Server The MRD Storage Server provides a simple RESTful API for storing and retrieving data during MRI image reconstructions. It supports:

Mar 18, 2022