jbactad / loop

A simple pulse-survey application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loop-app

A simple pulse-survey application.

The goal of the project is to implement the Hexagonal Architecture

Getting Started

Prerequisites

Setup

  1. Clone the repository.
git clone github.com/jbactad/loop.git
cd loop
  1. Install tools.
make setup
  1. Start the dependencies, i.e. database.
make dep-up
  1. Run the migrations.
make db-migrate
make db-seed # Optional
  1. Start the application.
make run

Go to http://localhost:8080 to view GraphQL Playground.

Project Structure

.
├── application
│   ├── commands
│   ├── ports
│   └── queries
├── cmd
│   ├── db
│   └── graphql
├── db
│   ├── migrations
│   └── seeds
├── domain
├── graph
│   ├── generated
│   ├── models
│   ├── resolvers
│   └── schemas
│   └── tests
└── infrastructure
    └── repositories
  • application: Contains the application layer. This layer contains the use cases, which are the application-specific business rules.
  • cmd: Contains different commands that can be run from the command line.
  • db: Contains the database migrations and seeds.
  • domain: Contains the domain layer. This layer contains the domain model and the domain services.
  • graph: Contains the GraphQL layer. This layer contains the generated code, the models, the resolvers, the schemas, and the tests.
  • infrastructure: Contains the infrastructure layer. This layer contains the implementation of the ports defined in the application layer.

About

A simple pulse-survey application.

License:MIT License


Languages

Language:Go 98.0%Language:Makefile 2.0%