Giter Club home page Giter Club logo

storm-toehold's Introduction

STORM Toehold App

To run locally, download the folder and follow instructions below. This virtual environment and packages have only been tested on a Mac running Mojave, so no guarantees if you have another system or OS.

<<<<<<< Updated upstream

1. Create virtual environment

Option #1a (conda)

Make a virtual environment with conda and python 3.6. Navigate to inside the app folder before pip installing.

conda create -n stormapp python=3.6 anaconda
conda activate stormapp
pip3 install -r requirements.txt
Option #1b (virtualenv)

Make a Python 3 virtual environment with virtualenv and install requirements.

python3 -m venv stormapp
source stormapp/bin/activate
pip3 install -r requirements.txt

2. Run the app locally

In one tab, start a redis server on the default port 6379.

redis-server

In a second tab (also in the virtual environment), use flask to run the app.

python3 -m flask run

You can now view the app running on http://127.0.0.1:5000/.

When done with the app, close the localhost window and deactivate the virtual environment with conda deactivate (if using conda) or deactivate (if using virtualenv).


Troubleshooting

If the app is failing to move your job from "queued" to "started", it might help to debug your redis queue (within the virtual environment).

rqworker --url redis://localhost:6379 default
=======
1. Make a virtual environment with conda and python 3.6. Navigate to inside the app folder before pip installing.
conda create -n stormapp python=3.6 anaconda
conda activate stormapp
pip3 install -r requirements.txt

2. Use flask to run the app. The app will be running on http://127.0.0.1:5000/.
python3 -m flask run

3. If the app is failing to move your job from "queued" to "started", it might help to debug your redis queue (within the virtual environment).
rqworker --url redis://localhost:6379 default

4. When done with the app, close the localhost window and deactivate the virtual environment.
conda deactivate

Stashed changes

storm-toehold's People

Contributors

ranikay avatar jacquelinevaleri 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.