Giter VIP home page Giter VIP logo

cardiac-sense's Introduction

CardiacSense

Getting Started

Build The Docker Image

Run this command when you are building the app for the first time or everytime you update the dependencies (requirements.txt, etc).

docker build -t cardiac-sense-ci:latest --progress tty .

Running The Container (For Development)

Start a container with the following command, which allows the user to enter linux shell terminal by mounting the project directory to the /app directory of the container. In addition, this command publishes the container ports: 8888 (Jupyter Server) and 8050 (Dash Server) to the host's ports 8888 and 8050, respectively.

  • Linux
docker container run --rm -it -v $PWD:/app -p 8888:8888 -p 8050:8050 --name cardiac-sense cardiac-sense-ci:latest bash

For developers who love to use VSCode IDE, you can refer to the Developing Inside The Container section from the documentation. After running this command, you can keep the container running by not killing the terminal and then, attach to the running container from the VSCode.

  • Windows (Powershell)
docker container run --rm -it -v ${pwd}:/app -p 8888:8888 -p 8050:8050 --name cardiac-sense cardiac-sense-ci:latest bash

Formatting The Code

To format the code according to PEP8 standard, you can use the following command. This code formatting command doesn't work on Jupyter notebooks. We'll have to find out how to do this for the notebooks as well in the future.

autopep8 --aggressive --aggressive --in-place app/*.py app/models/*.py app/views/*.py -v

Running Jupyter Notebook

By running this command inside the container, you can access the jupyter notebook at localhost's port 8888.

jupyter notebook --allow-root --ip 0.0.0.0 --port 8888

Downloading the dataset manually

docker compose run -p 8050:8050 --rm -it cardiac-sense-ci python3 tools/dataset_downloader.py

Running the Dashboard Web App

python3 app/main.py

Using Docker Compose (For Production)

  • Start the container, named cardiac-sense using the following command, if you are building the docker image for the first time or the requirements*.txt has been updated.
docker compose up --build
  • Otherwise, you can run it without the --build flag.

  • Once you finished working with the container, run the following to stop the container.

docker compose down

Local Host Port Addresses

Linux

Windows

Contributors

  • Mr. Aung Khant Maw

  • Ms. Khaing Su Thway

Resources

cardiac-sense's People

Contributors

aungkhantmaw64 avatar khaingsuthway avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

khaingsuthway

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.