/nouns-automations

Primary LanguagePythonMIT LicenseMIT

nouns-automations

Nouns automations is a project built for NounsDAO to allow building automations using Zapier and Integromat. This repo hosts the server side that serves the data to Zapier & Integromat.

How to contribute

Feel free to open issues/pull requests.

Using the automations

Running locally

  1. Clone the repo
  2. pipenv install && pipenv shell
  3. Create a new mysql database locally
  4. Create a .envrc file based on .envrc.example. .envrc uses direnv, you can use any other method to set env variables.
    1. Set the DJANGO_SECRET_KEY
    2. Set the mysql connection details
    3. Set the alchemy api key
  5. Create database tables: python manage.py migrate
  6. Run the server: python manage.py runserver
    1. Go to http://127.0.0.1:8000/auctions/ to see if everything works
  7. Schedule background job to check for new auctions:
    1. python manage.py schedule_check_for_new_auctions
  8. To run the background jobs, in a new shell, inside pipenv shell run: python manage.py qcluster