Skip to content

marprin/flask-rq-boilerplate

Repository files navigation

How to Setup?

A. Setup using virtual environment

  1. Install virtualenv for encapsulate the environment
  2. Create the virtual environment virtualenv -p python3 venv
  3. Activate the virtualenv . venv/bin/activate
  4. Install the requirements pip3 install -r requirements.txt
  5. Run the server ./runserver The app will run on port 5000

B. Setup using Docker

Just run

$ docker-compose up

And the application will run on port 9300 for http

Running Test

$ ./runtest

Shell

$ ./shell

The purpose of putting the tasks inside registered_tasks.py file is because easier to register the task and prevent us to add more worker later. To setup the schedule of background tasks, just register on settings.py file.

Releases

No releases published

Packages

No packages published