Categorygithub.com/sinistra/ecommerce-api
modulepackage
0.0.0-20241212093422-6d0c7a2edb09
Repository: https://github.com/sinistra/ecommerce-api.git
Documentation: pkg.go.dev

# README

eco-api

This is an eCommerce REST API written in go.
A number of middlewares have been defined for logging, recovery & auth.

Auth is done via JWTs and processed by the middleware, so every call to a REST endpoint can be authenticated.
Endpoints are grouped, so they can optionally be subjected to auth or allowed to proceed without auth (ie to login).

The underlying db is Mongo and the services have been separated so that MongoDb calls can be individually tested and optimized.
The MVC pattern has been implemented. I'm yet to be convinced that the Go pattern of putting routes & handlers into an 'internal' folder is the best way to go.
IMO this provokes a pre-emptive conversation on microservice architecture. Once the architecture is agreed upon, then (maybe) the Go pattern is more appropriate.

Status

This API has not been worked on for some time because I have been focussing on another side project which also uses a GoLang API. API development is evolutionary. Each iteration leverages the efforts of the previous.

This API will benefit from the improvements of the side project, however, this one needs the following;

  • removal of global variables
  • greater use of DI
  • testing, way more testing
  • functional enhancements.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author