Skip to content

dsafanyuk/Fetchr-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Re-writing my senior project in Go. Origin repo: https://github.com/Dsafanyuk/Fetchr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages