Coder Social home page Coder Social logo

jearistiz / guane-intern-fastapi Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 8.0 629 KB

FastAPI-PostgreSQL-Celery-RabbitMQ-Redis bakcend with Docker containerization

License: MIT License

Python 97.99% Shell 0.66% Dockerfile 1.36%
celery docker fastapi postgresql python rabbitmq redis

guane-intern-fastapi's People

Contributors

jearistiz avatar jearistiz-bold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

guane-intern-fastapi's Issues

Create CRUD

Create CRUDs:

  • Base CRUD
  • Dog CRUD
  • User CRUD

Create Docker container

Create docker containers:

  • Python - FastAPI app - Uvicorn server
    • Dockerfile
  • PostgreSQL database
  • docker-compose.yml

Implement a upload file endpoint

Upload a file to the endpoint POST at https://gttb.guane.dev/api/files via our POST endpoint at /api/upload-predefined-file-to-guane.

Update README

Include:

  • How to setup the local build
  • How the scripts work

No Celery service on docker-compose.yml

Steps

git clone https://github.com/jearistiz/guane-intern-fastapi
cd guane-intern-fastapi
docker-compose up --build

Expected behaviour

Docker compose starts building all service images from docker-compose.yml

Actual behaviour

$ docker-compose up -d
ERROR: Service 'backend_app' depends on service 'celery' which is undefined.

So there is something I am missing or there is no celery service in docker-compose.yml which is required on backend-app service to work.
See depends-on:

version: "3.5"
services:
  backend_app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: backend_app
    stop_signal: SIGINT
    env_file: .env
    image: app/backend
    depends_on: 
      - postgres
      - celery
. . .

Update README

With information about all the services. The architecture is complete. Celery tests missing.

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.