Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

457 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenit

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.

Technologies

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.

Contributing

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.

Development

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.txt

Create 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 localhost

Make 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 runserver

Running Tests

cd greenit-backend
./manage.py test

About

Greenit's backend

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages