All Projects → cyruzin → clean_architecture

cyruzin / clean_architecture

Licence: MIT License
Clean Architecture Simple App.

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to clean architecture

Android Clean Architecture Mvvm Dagger Rx
Implemented by Clean Architecture, Dagger2, MVVM, LiveData, RX, Retrofit2, Room, Anko
Stars: ✭ 138 (+762.5%)
Mutual labels:  example, clean-code, clean-architecture
flutter clean architecture
A flutter clean architecture series, the way we build clean apps.
Stars: ✭ 225 (+1306.25%)
Mutual labels:  clean-code, clean-architecture
Android-Clean-Architecture
🚀A basic sample android application to understand Clean Architecture in a very simple way and is written in Kotlin.
Stars: ✭ 39 (+143.75%)
Mutual labels:  clean-code, clean-architecture
CleanArchitecture-Template
This is a solution template for Clean Architecture and CQRS implementation with ASP.NET Core.
Stars: ✭ 60 (+275%)
Mutual labels:  clean-code, clean-architecture
flutter pokedex
Pokedex app built with Flutter (with lots of animations) using Clean Architecture
Stars: ✭ 1,603 (+9918.75%)
Mutual labels:  clean-code, clean-architecture
whatsApp clone
Flutter WhatsClone (with Firebase + Clean Architecture) this app follow clean architecture proposed by our friendly Uncle Bob.
Stars: ✭ 181 (+1031.25%)
Mutual labels:  clean-code, clean-architecture
NodeJS-A-Clean-Archticture-NJCA
This is a simple NodeJS Architecture can be used in an enterprise applications. 🎉🤔
Stars: ✭ 64 (+300%)
Mutual labels:  clean-code, clean-architecture
clean architecture typescript example
This repository provides an implementation (or at least an attempt) of Uncle Bob's Clean Architecture with Typescript.
Stars: ✭ 78 (+387.5%)
Mutual labels:  clean-code, clean-architecture
iOS-Clean-Architecture-Example
An iOS app designed using clean architecture and MVVM.
Stars: ✭ 50 (+212.5%)
Mutual labels:  clean-code, clean-architecture
clean-ddd-php-poc-contacts
A simple contact manager API to demonstrate the concepts of Clean Architecture and DDD with PHP 7.4+.
Stars: ✭ 31 (+93.75%)
Mutual labels:  clean-code, clean-architecture
RSS-Reader
Simple project with clean architecture
Stars: ✭ 31 (+93.75%)
Mutual labels:  clean-code, clean-architecture
eShopOnWeb
Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
Stars: ✭ 8,250 (+51462.5%)
Mutual labels:  clean-code, clean-architecture
go-monolith-example
Example Go monolith with embedded microservices and The Clean Architecture
Stars: ✭ 186 (+1062.5%)
Mutual labels:  clean-code, clean-architecture
SwiftObserver
Elegant Reactive Primitives for Clean Swift Architecture #NoRx
Stars: ✭ 14 (-12.5%)
Mutual labels:  clean-code, clean-architecture
clean-code-javascript-ko
🛁 Clean Code concepts adapted for JavaScript - 한글 번역판 🇰🇷
Stars: ✭ 1,767 (+10943.75%)
Mutual labels:  clean-code, clean-architecture
fastapi-pydiator
Python clean architecture and usecase implementation with fastapi and pydiator-core
Stars: ✭ 58 (+262.5%)
Mutual labels:  clean-code, clean-architecture
phpstats
CLI Statistics and dependency graphs for PHP
Stars: ✭ 61 (+281.25%)
Mutual labels:  clean-code, clean-architecture
birthtalk
Meet who have birth common with you
Stars: ✭ 36 (+125%)
Mutual labels:  clean-code, clean-architecture
Clean-Architecture-in-Golang
A Clean Architecture in Golang
Stars: ✭ 22 (+37.5%)
Mutual labels:  clean-code, clean-architecture
CleanArchitectureMVVM
Example of Clean Architecture of Android app using MVVM, Koin, Coroutines, Retrofit, Room, Solid Principle, DRY, KISS, OOP
Stars: ✭ 60 (+275%)
Mutual labels:  clean-code, clean-architecture

Clean Architecture Simple App

Build Go Report Card GitHub license

This repo contains a simple command line tool and a rest server that checks the best price between two destinations.

Architecture

For the system architecture I have decided to use the Clean Architecture proposed by Robert C. Martin (Uncle Bob).

Pull requests are welcome.

Install

Make sure you have Git and Go installed in you machine.

Clone the repo:

 git clone [email protected]:cyruzin/clean_architecture.git

Install Go dependencies:

 go mod download

If you want to modify the default values, rename the .env.example file to .env and change the values if you want.

 mv .env.example .env

Running

Cli

Go to the cli folder:

 cd cmd/cli

Then, run the command below:

  go run main.go BBB AAA

Rest Server

Go to the routes folder:

 cd cmd/routes

Then, run the command below:

  go run main.go

Default Base URL: http://localhost:8000

End-points:

GET - /route

Params required: departure, destination

Eg: http://localhost:8000/route?departure=BBB&destination=AAA

POST - /route

Params required: departure, destination, price

Eg: http://localhost:8000/route

JSON Payload:

{
  "departure": "BBB",
  "destination": "AAA",
  "price": 76
}

Libs

  • go-chi
  • json-iterator
  • zerolog
  • envconfig

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].