Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/amalmadhu06/project-laptop-store-clean-arch
- Owner: amalmadhu06
- Created: 2023-03-02T06:09:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T01:59:53.000Z (6 months ago)
- Last Synced: 2024-10-31T11:51:31.265Z (8 days ago)
- Topics: clean-architecture, e-commerce-project, gin, go, go-project, golang, postgresql, rest-api, swagger
- Language: Go
- Homepage:
- Size: 380 KB
- Stars: 28
- Watchers: 2
- Forks: 4
- Open Issues: 8
-
Metadata Files:
- Readme: README.MD
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-archcd 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 passwordTWILIO_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