todo-api-microservice-example
explicit-architecture-php
Our great sponsors
todo-api-microservice-example | explicit-architecture-php | |
---|---|---|
17 | 3 | |
973 | 667 | |
- | - | |
8.6 | 0.0 | |
3 days ago | almost 3 years ago | |
Go | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
todo-api-microservice-example
-
While Learning Haskell Developing Project
Hello guys im a self teach coder. im working with golang atm because this great project speed up my learning curve: https://github.com/MarioCarrion/todo-api-microservice-example
-
Open source projects to look at for best practices?
With that being said, if you're looking for something friendlier, I share my own educational repo, still a WIP but it should help you with the basics.
-
Is there a standard file in Golang from which packages could be installed? Yes, I am aware about go.mod, but hear me out.
internal/tools and
-
Hexagonal architecture and mocking
You are going to need to add a domain package where the Beer type and all the logic associated to that type is defined to avoid the cyclical dependency. I typically follow this approach by using internal as the domain package that then other packages like services, data stores or transport use.
- Working with microservices in a monorepo
-
DDD file structure & cyclic dependencies
Here's my approach; a few worth-mentioning packages in there: * service defines the use cases, it's a glue between the domain model and repositories. * rest defines the http handlers uses the service types via dependency injection (see main.go) * postgresql concrete repository example (there are other implementations for other data stores like kafka, redis, etcetera.
-
Example of a well written and structured RESTful API or web service?
Other redditors mentioned some good resources, I'm going to shamelessly plug mine as well; either way after you are done with whatever tutorial you use I recommend you to look at the Exposure Notifications Server, reading the source code should help you learn other best practices.
-
Golang for backend
One word of advise I can give you is that building a production-grade microservice in Go takes a bit; not because of the language but because you have consider the tradeoffs when choosing different packages to connect everything to make it work (because there's no Django, Ruby on Rails or Spring), I have an educational repository (still work in progress) trying to describe what I've learned from the last 5 years after successfully deploying multiple services to production where multiple engineers contribute and collaborate together; perhaps that could help you.
-
How to avoid "import cycle not allowed" when defining related models in different packages?
With all of that being said I have an educational repository demonstrating this structure, I've been using it in real life for about 5 years already and I've successfully delivered services to production multiple times where multiple engineers contribute and collaborate together.
-
Good example of production grade rest api without an ORM
You may want to checkout the "Exposure Notifications Server" project; I also have a similar (educational) project that uses the Repository Pattern.
explicit-architecture-php
-
Perfect app architecture for dynamic, testable and predictable code ie. help me I'm in a rewrite loop
I've came across this article that, at first glance, gave me hope that I don't have to give up software development and start working as checkout boy, but i'm having a hard time applying it to go. Author gave an example app that is written in PHP but I can't translate it to go while adhering to effective go and the way go does things.
-
Code Design - Domain Driven Hexagon
Diagram is mostly based on this one + others found online
-
DDD / Hexagonal Architecture
And he's got a git repo https://github.com/hgraca/explicit-architecture-php/tree/dev. Just be aware this currently isn't fully installable because it's outdated.
What are some alternatives?
fx - A dependency injection based application framework for Go.
php-ddd-example - 🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
svc-fizzbuzz - A simple fizzbuzz microservice
domain-driven-hexagon - Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included
franz-go - franz-go contains a feature complete, pure Go library for interacting with Kafka from 0.8.0 through 3.6+. Producing, consuming, transacting, administrating, etc.
waypoint - A tool to build, deploy, and release any application on any platform.
TypeScript-Website - The Website and web infrastructure for learning TypeScript
exposure-notifications-server - Exposure Notification Reference Server | Covid-19 Exposure Notifications
Symfony - The Symfony PHP framework
go-rest-api-course
Grav - Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony