Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.06 KB

Fetchr-go

Quick Info

This is my attempt to learn Go by reimplementing my senior project Fetchr backend. (originally written in Node.js).

Fetchr is a service that has 2 main functions:

  • users browse products, add items to carts, checkout
  • couriers browse open orders, accept open orders, deliver their assigned orders

Code Structure

This project will try to follow Domain Driven Design and Hexagonal Architecture.

File structure
├── cmd // not sure about using this as the way to run packages yet
│   └── user 
│       └── main.go
├── config // database config goes here for now
│   └── config.go
└── pkg
   ├── database
   │   └── psql
   │       └── user.go
   ├── middleware
   │   └── auth.go
   └── user // user domain
       ├── handler.go // handles http 
       ├── model.go   // user struct
       ├── repo.go    // user interface
       └── service.go // user service