Golang backend for online shop

Overview

Golang backend for online shop

Local setup:

Prerequisites:

  • GOLang
  • MySQL

Steps:

  1. Logging with your credentials using mysql cli.
mysql -u root -p
Enter password:
  1. Create a new database
create database online_shop;
use online_shop;
  1. Use initial sql file to create the tables and insert initial data
source sql/initialSetup/tableProducts.sql;
source sql/initialSetup/tableOrders.sql;
source sql/initialSetup/tableOrderedProducts.sql;
  1. Start main.go with those environment variables
MYSQL_USER = 
   
    
MYSQL_PASSWORD = 
    
     
MYSQL_IP_ADDRESS = 
     
       default: localhost:3306

     
    
   

Swagger

Go to
localhost:8080/swagger/index.html
to see the available endpoint and try example call.

You might also like...
A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.
A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

A Golang REST API to handle users and posts for a simple instagram backend. Uses MongoDB as the database. Tested using golang-testing and Postman.

The source code for workshop Scalable architecture using Redis as backend database using Golang + Redis

The source code for workshop Scalable architecture using Redis as backend database using Golang + Redis

Build a TodoList with Go Design and implement a backend RESTful service in golang with CRUD

May we ask Igor to do a little project in leu of sample code? If there is a hire, the hours spent should be invoiced, so please keep track of that. Th

Backend developer with gin framework (Golang)

Backend developer with golang Install Packages : $ go get -u github.com/gin-gonic/gin $ Building from source Install a Go compiler. Install Goland ide

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

Plenti Static Site Generator with Go backend and Svelte frontend
Plenti Static Site Generator with Go backend and Svelte frontend

Plenti Static Site Generator with Go backend and Svelte frontend Website: https://plenti.co Requirements ❗ You must have NodeJS version 13 or newer As

Instagram Backend HTTP REST API using GO Lang and Mongo DB

Instagram Backend HTTP REST API using GO Lang and Mongo DB Project for Appointy Summer Internship . Project built within 25 hrs, with no prior knowled

Buff Up Backend Challenge For Go

Buff Up Backend Challenge As part of the recruitment process we would like to complete the following backend challenge. We use this backend challenge

Chat backend which serves REST APIs

Chat backend which serves REST APIs

Owner
Александър Найденов
Александър Найденов
Gokkan is a dokkan (shop) backend written in Go

Gokkan is an online shop backend service written in Go. Setup Requirements # or docker-compose up make up Gokkan requires postgresql as databas

Mohammad Fatemi 6 Sep 28, 2021
An online, full fledged bank system - ATM, online bank, transactions, bank cards

Bank An online, full fledged bank system - ATM, online bank, transactions, bank cards Online Bank: The online banking system can be used to send trans

Glaukio 3 Apr 2, 2022
One-stop shop for english-translated licensed hentai manga and doujins, beat your meat in peace, without any bullshit and drama attached to it.

koushoku Source code of site [redacted] for those who are willing to run their own instance. How it serve and index the archives Archives and its file

rs 43 Jan 2, 2023
Online Preview Word,Excel,PPT,PDF,Image by Golang

Online Preview Word,Excel,PPT,PDF,Image by Golang.基于Golang的在线预览Word,Excel,PPT,PDF,图片.

Yilong Li 182 Dec 26, 2022
A fully-featured REST API developed in Golang for an online book store.

A fully-featured REST API developed in Golang for an online book store.

Raphael Collin 15 Oct 20, 2022
A fully-featured REST API developed in Golang for an online book store.

E-book Store A fully-featured REST API developed in Golang for an online book store. API Documentation Features Authentication (Sign up, Login and Res

Raphael Collin 15 Oct 20, 2022
an online REST renting book platform which you can authenticate, order, reserve a book in your account.

BOOK MAN an online REST renting book platform which you can authenticate, order, reserve a book in your account. it's a microservices project with hig

Mohammad 9 Jul 22, 2022
REST-API specifically build to support online store system of Zahir

Rest Test. • From Above ERD please create Rest full API. Create register API(Include Generate password). • Acceptance o Phone number and email is uniq

Sandi Permana Soebagio 0 Nov 15, 2021
A Go module that obtains the iksm_session cookie for use with the Nintendo Switch Online Splatoon 2 libraries

SplatNetIksm SplatNetIksm is a Go module that obtains the iksm_session cookie for use with the Nintendo Switch Online Splatoon 2 libraries. Adapted fr

Cassandra de la Cruz-Munoz 1 Feb 23, 2022
E-Commerce-Project - E-commerce adalah aplikasi untuk dapat melakukan jual-beli secara online

E-COMMERCE PROJECT E-commerce adalah aplikasi untuk dapat melakukan jual-beli se

null 3 May 23, 2022