Coder Social home page Coder Social logo

amalmadhu06 / project-laptop-store-clean-arch Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 4.0 389 KB

E-commerce Web API built with Go, PostgreSQL & REST API by following Clean Architecture

Go 97.71% Makefile 0.63% HTML 1.43% Dockerfile 0.23%
e-commerce-project gin go go-project golang postgresql rest-api swagger clean-architecture

project-laptop-store-clean-arch's Introduction

Project Laptop Store Ecommerce | Go | REST | PostgresSQL | Clean Architecture

E-commerce REST API with Go & PostgresSQL. Uses Gin framework , Wire for dependency injection, Viper for handling environment variables, GORM as ORM and Swagger for API documentation.

Technologies Used

  • Go
  • PostgreSQL
  • Gin
  • Wire
  • Viper
  • GORM
  • go-swagger

Project Overview

Describe the purpose of the project, what it does, and what problem it solves.

Installation

Clone the repo

git clone https://github.com/amalmadhu06/project-laptop-store-clean-arch

cd project-laptop-store-clean-arch

Install required packages

go mod tidy

Setup Environment Variables

DB_HOST = replace with hostname
DB_NAME = replace with db name
DB_USER = replace with db username
DB_PORT = replace with db port
DB_PASSWORD = repalce with db password

TWILIO_ACCOUNT_SID = replace with your twilio account sid
TWILIO_AUTHTOKEN = replaec with twilio auth token
TWILIO_SERVICES_ID = replace with twilio services id

Compile and run

make run

Usage

Open any browser and access following link

http://localhost:3000/swagger/index.html#/

Star History

Star History Chart

API Documentation

Architecture

This project follows clean architecture.

Testing

Contributing

License

project-laptop-store-clean-arch's People

Contributors

amalmadhu06 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

project-laptop-store-clean-arch's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.