Giter VIP home page Giter VIP logo

product_hub's Introduction

Product HUB

Ports and adapters

Project based in port and adapters aka Hexagonal Architecture

Setup

Enviroment file

$ cd product_hub
$ cat <<EOT >> .env
# Flask
# ------------------------------------------------------------------------------
FLASK_APP_HOST=product_hub_flask
FLASK_APP=app:app
SECRET_KEY=7dJghTRxWVYtupHYB722YbZkXpFJMM7jsERekzt2tMQwcwatncgt5As69txNxR3s
DATABASE_URI=postgresql+psycopg2://postgres:password@product_hub_postgres:5432/product_hub


# Celery
# ------------------------------------------------------------------------------

CELERY_HOST=product_hub_celery
CELERY_BROKER_URL=amqp://rabbitmq:password@product_hub_rabbitmq:5672/app
CELERY_RESULT_BACKEND=redis://product_hub_redis:6379


# PostgreSQL
# ------------------------------------------------------------------------------
POSTGRES_HOST=product_hub_postgres
POSTGRES_PORT=5432
POSTGRES_DB=product_hub
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_DATA=~/Documents/Projects/docker/product_hub/postgres
POSTGRES_BACKUPS=~/Documents/projects/docker/product_hub/postgres_backups
POSTGRES_EXTERNAL_PORT=5432
POSTGRES_HOST_LOCAL=127.0.0.1


# Redis
# ------------------------------------------------------------------------------
REDIS_PORT=6379
REDIS_HOST=product_hub_redis
REDIS_HOST_LOCAL=localhost
REDIS_DATA=~/Documents/projects/docker/product_hub/redis


# Rabbitmq
# ------------------------------------------------------------------------------
RABBITMQ_HOST=product_hub_rabbitmq
RABBITMQ_HOST_LOCAL=localhost
RABBITMQ_USER=rabbitmq
RABBITMQ_PASS=password
RABBITMQ_VHOST=app
RABBITMQ_MANAGEMENT_PORT=15672
RABBITMQ_PORT=5672
RABBITMQ_DIR=~/Documents/projects/docker/product_hub/rabbitmq

EOT

Docker compose

$ docker-compose up -d && docker-compose logs -f

Update db

$ docker exec -ti product_hub_app alembic upgrade head

product_hub's People

Contributors

eduardolujan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.