Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

E-commerce Web API built with Go, PostgreSQL & REST API by following Clean Architecture
https://github.com/amalmadhu06/project-laptop-store-clean-arch

clean-architecture e-commerce-project gin go go-project golang postgresql rest-api swagger

Last synced: about 21 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```.env
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](https://api.star-history.com/svg?repos=amalmadhu06/project-laptop-store-clean-arch&type=Timeline)](https://star-history.com/#amalmadhu06/project-laptop-store-clean-arch&Timeline)

## API Documentation

## Architecture

This project follows clean architecture.

## Testing

## Contributing

## License