GithubHelp home page GithubHelp logo

hartl3y94 / dash-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maanibeigy/dash-boilerplate

0.0 0.0 0.0 300 KB

Production-ready (i.e., dockerized) dash app boilerplate

License: MIT License

Shell 23.35% Makefile 18.38% Python 31.26% Dockerfile 27.00%

dash-boilerplate's Introduction

Boilerplate for Python Dash Projects

Build status coverage report static analysis vulnerabilities lint report Dependencies Status FOSSA Status

interrogate maintainability complexity Code style: black Security: bandit Pre-commit license

Production-ready (i.e., dockerized) dash app boilerplate

Development

Uses gunicorn + nginx.

  1. Rename .env.dev.example to .env.dev.

  2. Update the environment variables in the docker-compose.yml and .env.dev files.

  3. Build the images and run the containers:

    docker-compose up -d --build

    Test it out at http://localhost:1337. The "web" folder is mounted into the container and your code changes apply automatically.

  4. Check the logs if necessary:

    docker-compose -f docker-compose.yml logs -f
  5. Drop the container when you are done:

    docker-compose -f docker-compose.yml down -v

Production

Uses gunicorn + nginx.

  1. Rename .env.prod.example to .env.prod. Update the environment variables.

  2. Build the images and run the containers:

    docker-compose -f docker-compose.prod.yml up -d --build

    Test it out at http://localhost:1337. No mounted folders. To apply changes, the image must be re-built.

  3. Check the logs if necessary:

    docker-compose -f docker-compose.prod.yml logs -f
  4. Drop the container when you are done:

    docker-compose -f docker-compose.prod.yml down -v

Local testing and generating badges:

python3.9 -m venv .venv_39
. .venv_39/bin/activate
python3 -m pip install --upgrade pip poetry
make install
make pre-commit-install
make test && make coverage && make check-codestyle && make mypy && make check-safety && make extrabadges

Upload code to GitHub:

pre-commit run --all-files
git add .
git commit -m ":tada: Initial commit"
git push -u origin main

Credits

testdrivenio/flask-on-docker

License

FOSSA Status

dash-boilerplate's People

Contributors

dependabot[bot] avatar fossabot avatar maanibeigy 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.