Skip to content

Simple RestAPI with Go, Echo, Gorm, MySQL and Domain-Driven Design(DDD) architecture

Notifications You must be signed in to change notification settings

jakib01/golang-echo-Domain-Driven-Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple RestAPI using GO Echo Framework

simple RestAPI with Go, Echo, Gorm, MySQL and Domain-Driven Design(DDD) architecture

Requirements

Simple RestAPI is currently extended with the following requirements.
Instructions on how to use them in your own application are linked below.

Requirement Version
Go 1.18.4
Mysql 8.0.30

Installation

Make sure the requirements above already install on your system.
Clone the project to your directory and install the dependencies.

$ git clone https://github.com/jakib01/golang-echo-Domain-Driven-Design.git
$ cd golang-echo-Domain-Driven-Design
$ go mod tidy

Configuration

Copy the .env.example file and rename it to .env
Change the config for your local server

DB_HOST=      localhost
DB_PORT=      3306
DB_USER=      root
DB_PASSWORD=
DB_NAME=      online-store
SERVER_PORT=  8080

Running Server

$ go run main.go

Endpoints

These are the endpoints we will use to create, read, update and delete the course data.

POST product-create → Add new create data
GET products → Retrieves all the created data
GET product/{id} → Retrieves single created data
PUT product-update/{id} → Update single created data
DELETE product-delete/{id} → Delete created data

About

Simple RestAPI with Go, Echo, Gorm, MySQL and Domain-Driven Design(DDD) architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages