egfood / jackfruit-core

The second version of VegPool platform (Green Food)
1 stars 1 forks source link

Egreen (Jackfruit version)

Introduction to project, its purposes etc..

Environment variables for work

Develop

Requirements

How to prepare for development (without docker)

  1. go to project folder (in jackfruit-core folder)
  2. cp dev.env core/.env
  3. python3 -m venv py310 (py310 - folder for a new virtual environment)
  4. source py310/bin/activate
  5. pip install -r requirements.txt
  6. make i - applies migrations, collects static and creates demo users (see email/password in output)
  7. make csu - creates a superuser

After that you can start your server by PyCharm or your preferred IDE or via execute command ./manage.py runserver'

Flatpage templates

  1. For buyer landing pages use template buyer/flatpages/default.html
  2. For farmer landing pages use template farmer/flatpages/default.html