Code Monkey home page Code Monkey logo

api-example-django's People

Contributors

amit56r avatar dependabot[bot] avatar dmalinovsky avatar mattmerrifield avatar sangelone avatar

Watchers

 avatar

api-example-django's Issues

changes proposal

Changes

  1. Folder structure:

    1. Split frontend, backend and infrastructure code in a mono-repo.
    2. Break down the existing application into modules and extract the common configs into a core folder.
    .
    ├── README.md
    ├── backend
    │   ├── __init__.py
    │   ├── apps
    │   │   ├── __init__.py
    │   │   ├── accounts
    │   │   ├── auth
    │   │   ├── booking
    │   │   └── dashboard
    │   ├── core
    │   │   ├── __init__.py
    │   │   ├── settings.py
    │   │   ├── urls.py
    │   │   └── wsgi.py
    │   ├── manage.py
    │   ├── requirements.txt
    │   └── tests
    │       ├── __init__.py
    │       └── readme.md
    ├── docker-compose.yml
    ├── frontend
    │   ├── README.md
    │   ├── package.json
    │   ├── public
    │   ├── src
    │   └── yarn.lock
    └── infrastructure
        ├── docker
        │   ├── data
        │   ├── dbsnapshot
        │   ├── drchrono-dockerfile
        │   └── environment.example
        └── infra.yaml
    
  2. Add versioning to APIs, i.e. apps/accounts/api/v1/*

  3. Configs stored in the environment to easily vary between deploys

  4. CI/CD to every PR, easily configured with GitHub actions + any cloud service

  5. Infrastructure as code, AWS cloudformation or terraform

  6. Infrastructure:
    image

  7. Sequence diagram:

  • The connection from the WebSocket to the Client should not be the responsibility of the REST server.
  • The messages should be saved in the DB and published in the Broker.
  • The client could only receive new messages via WebSockets, the insertion of new messages would still occur via HTTP.
  • The first call to fill the whole dashboard should be made to the REST API.

image

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.