Code Monkey home page Code Monkey logo

spaapp's Introduction

SpaApp CI/CD

Structure

  • This project is written in the latest version of Python 3.11 along with the Django framework

  • All code is written in OOP

  • NoSQL database MongoDB is connected via official images

    • Django ORM was used to work with the database

  • WebSocket chat functionality is connected, i.e. Django Channels

  • Implemented queue functionality using Celery and RabbitMQ message broker

  • Caching is used in some cases

  • The JWT token is used to authenticate the user

Launch in Docker-Compose

  • Just a few steps are enough to do:

    • Copy the already prepared file docker-compose.yml to the folder

    • At the level of this file, create an .env file where you write the following variables:

      • Write a SECRET_KEY variable for the JWT token ( it can be a random value )

      • MONGO_INITDB_ROOT_USERNAME

      • MONGO_INITDB_ROOT_PASSWORD

      • MONGO_DB_AUTH_SOURCE ( for this variable usually 'admin' value is used)

      • ME_CONFIG_MONGODB_ADMINUSERNAME ( use the same data as for image mongo )

      • ME_CONFIG_MONGODB_ADMINPASSWORD ( use the same data as for image mongo )

      • ME_CONFIG_MONGODB_SERVER=mongo

    • After installing the environment, we run:

    docker-compose up -d
    
    • After successful launch in our project folder should be created 2 folders:

      • mongodb_data

      • rabbitmq_data

    • It means that all started well

    • And the last step is to apply the migrations in the container:

    docker exec -it backend bash
    
    python src/manage.py migrate
    
  • Now the backend part is ready to be used)

spaapp's People

Contributors

vyacheslavshrot avatar

Watchers

 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.