Human Evolution for Landscape Protection (HELP) WebSite
git clone https://github.com/adraxyz/help-nonprofit.git
Python >= 3.8
Pip >= 20.1.1
python3-venv >= 3.8.6
Postgres >= 12.5
npm >= 6.14.8
sudo -u postgres psql
CREATE DATABASE <your_database_name>;
CREATE USER <your_database_user> WITH PASSWORD '<your_database_password>';
ALTER ROLE <your_database_user> SET client_encoding TO 'utf8';
ALTER ROLE <your_database_user> SET default_transaction_isolation TO 'read committed';
ALTER ROLE <your_database_user> SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE <your_database_name> TO <your_user>;
python3 -m venv help_nonprofit
. help_nonprofit/bin/activate
pip install -r help-nonprofit/backend/requirements.txt
help-nonprofit/backend/backend/.env
python3 help-nonprofit/backend/manage.py makemigrations
python3 help-nonprofit/backend/manage.py migrate
python3 help-nonprofit/backend/manage.py collectstatic
python3 manage.py runserver
Visit localhost:8000 for APIs calls or the Django admin
cd help-nonprofit/frontend
npm install
help-nonprofit/frontend/.env
npm run dev
Visit localhost:3000