Greenit is a social, economical and ecological solution to replace industrial production by homemade and local production. Our first mission is to lead a community which supports knowledge sharing for healthy consumptions and productions.
Our V1 is a recipe site, focussed on building a community around discovering, creating and sharing recipes with each other.
Greenit places a high value on its reusability by the community and use of ethical tech, and is therefore FOSS whilst also avoiding using as many of Big Tech’s services as possible.
The progressive web app displays user-uploaded recipes sorted by categories and tags and is hosted on DigitalOcean's servers. We use plausible.io for analytics.
The frontend is built using the Tailwind Framework on top of React. Apollo is used to handle GraphQL.
The backend is Django/GraphQL and the database Postgres.
This project is in an early stage. If you are interested in contributing, feel free to reach out to liam.going@code.berlin or aarnav.bos@code.berlin.
Install greenit-backend for development with the following commands:
git clone https://github.com/greenit-recipes/greenit-backend.git
python3 -m venv env
source env/bin/activate
cd greenit-backend
pip install -r requirements.txtCreate an .env file based on the sample.env provided and edit it to match your project's specs:
cp sample.env .env# edit .env:
# SECRET_KEY= ... <--- https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-SECRET_KEY
# POSTGRES_DB_USERNAME= ... <--- The name of your database
# POSTGRES_DB_PASS= ... <--- The password to your database
# POSTGRES_DB_HOST= ... <--- Where your database is hosted, i.e. 127.0.0.1 if localhostMake sure the .env file is listed in your .gitignore file, so your access information isn't pushed to github.
Migrate and launch the development server:
cd greenit-backend
./manage.py migrate
./manage.py createsuperuser
./manage.py runservercd greenit-backend
./manage.py test