{"repo":"OriginProtocol/origin-website","free":true,"listed":false,"github":"https://github.com/OriginProtocol/origin-website","clone":"git clone https://github.com/OriginProtocol/origin-website.git","description":"The code powering our website","language":"HTML","stars":41,"topics":["ethereum","sharing-economy","ipfs","marketplaces","open-source","origin","origin-protocol"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Head to https://www.originprotocol.com/developers to learn more about what we're building and how to get involved. originprotocol.com Official website for Origin Protocol This is a Flask app with the source code for www.originprotocol.com. The code is all Python 3.9.2 with Postgres for the database (basically just for the mailing list). The database is not required to be configured if you're just working on the website. Installing Clone git clone https://github.com/OriginProtocol/origin-website.git Setup and activate a Python virtualenv python3 -m venv origin-website/venv source origin-website/venv/bin/activate Install pip install -e .[dev] Rename the file sample.env to .env , and update env variables as desired. mv sample.env .env Run it! python main.py Open browser to view open http://127.0.0.1:5000/ Problems? Hit us up in the #engineering channel on Discord if you need help. Run the Tests Throughout the development process and before committing or deploying, run: Run individual test files simply as: Run a single test case, or an individual test, using: Running locally with Celery We use Celery for running background tasks (mostly just sending emails). To get this working on your local machine, you'll want to make sure: - Your .env has CELERY DEBUG: False - Redis is installed and running: redis-server - An active Celery worker is running: celery -A util.tasks worker --loglevel=INFO Celery Flower is useful for monitoring tasks: flower -A util.tasks --port=5555 Running locall","default_branch":null,"files":null,"tree":[],"storefront":"/r/OriginProtocol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OriginProtocol/origin-website/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}