Giter Club home page Giter Club logo

ds2023_clb's Introduction

Container Load Balancing (CLB)

DS2023 project

Joku lyhyt selitys projektista vois olla vaikka tässä :D. Ehkä tekijätkin :D.

Requirements

  • Python 3.7+
  • pip
  • Docker
  • Docker Compose

First Start Guide for *nix

We strongly recommend using a Python virtual environment. So after cloning the repository and changing into the main directory (DS2023_CLB), create a new virtual environment with: (if you don't have virtualenv-module installed, please install it with pip)

python3 -m venv venv/

It's important to name the virtual environment directory venv/ as that is included in the .gitignore file. Please do not push your venv to our beautiful repository :).

You can now activate the virtual environment from the main directory:

source venv/bin/activate

Now install the required packages with pip:

pip3 install -r requirements.txt

Start CLB:

docker-compose up

First Start Guide for Windows

We strongly recommend using a Python virtual environment. So after pulling the repository and changing into the main directory (DS2023_CLB), create a new virtual environment with: (if you don't have virtualenv-module installed, please install it with pip)

python -m venv venv\

It's important to name the virtual environment directory venv/ as that is included in the .gitignore file. Please do not push your venv to our beautiful repository :).

You can now activate the virtual environment from the main directory:

venv\Scripts\activate

Now install the required packages with pip:

pip install -r requirements.txt

Start CLB:

docker-compose up

Quick Start Guide for *nix (for every use after First Start Guide)

In the main directory: Activate the virtual environment:

source venv/bin/activate

Make sure your packages are up to date:

pip3 install -r requirements.txt

Start CLB:

docker-compose build && docker-compose up

Quick Start Guide for Windows (for every use after First Start Guide)

In the main directory: Activate the virtual environment:

venv\Scripts\activate

Make sure your packages are up to date:

pip install -r requirements.txt

Start CLB:

docker-compose build & docker-compose up

Dev Guide for *nix

Great tutorial for Flask

Initialize migration repository, if app.db does not exist (inside /database/ directory):

flask init db

Migrate database, if made changes to /app/models.py (inside /database/ directory):

flask db migrate -m "your message here"
flask db upgrade

If your changes to /app/models.py fucked everything up (inside /database/ directory): Revert your changes in /app/models.py

flask db downgrade

Remove migration script from /migrations/versions/, you should be able to recognize the correct script by filename which contains your message.

ds2023_clb's People

Contributors

xsandalf 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.