Skip to content

gift-economy network for sustainable communities (redesign 2020)

Notifications You must be signed in to change notification settings

ecobasa/ecobasa-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecobasa Redesign 2020

Ecobasa is a gift-economy network for sustainable communities

This is a work-in-progress attempt of a redesign.

Setup for dev

Postgis

Because we are using postgis for location fields, you need a postgres db with postgis extensions for this to work, even for development, sorry.

Install postgresql database server and postgis dependencies:

apt install libgdal-dev postgis postgresql-12

Create normal database in postgres:

su postgres
createuser ecobasa
createdb ecobasa -O ecobasa

Then add postgis extensions to this database:

su postgres
psql -d ecobasa
CREATE EXTENSION postgis;

normal dev setup

pipenv install --dev
pipenv shell
python manage.py migrate
npm install
npm run build

Run Tests

The database user must have permission to create a new test database and add postgis extensions:

su postgres
psql
ALTER_ROLE ecobasa SUPERUSER;
pytest

Continous Deployment

https://ecobasa.herokuapp.com/

(auto deploys master branch)

About

gift-economy network for sustainable communities (redesign 2020)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published