Skip to content

rerb/hub

 
 

Repository files navigation

Build Status Coverage Status Issue Count Code Climate

                 _            _           _
  __ _  __ _ ___| |__   ___  | |__  _   _| |__
 / _` |/ _` / __| '_ \ / _ \ | '_ \| | | | '_ \
| (_| | (_| \__ \ | | |  __/ | | | | |_| | |_) |
 \__,_|\__,_|___/_| |_|\___| |_| |_|\__,_|_.__/

The Campus Sustainability Hub

Installation, for local development

Copy the sample settings file and adjust the settings according to your needs:

$ cp hub/settings/local.py.example hub/settings/local.py

Install the requirements and create a blank database, migrate all the tables:

$ pip install -r requirements.txt
$ pip install -e .

Proceed with the actual project setup:

$ cd hub
$ manage.py migrate

Load the supplied organizations:

$ psql hub < iss_organization.sql

Create a superuser to get access to the admin:

$ manage.py createsuperuser

Change CSS (Compile SCSS files)

You have to install Node/npm, on a Mac:

$ brew install node

Install the Javascript dependencies (such as sass):

$ cd hub/
$ npm install

Make changes to the SCSS files in hub/static/scss and before commit compile them to CSS:

$ npm run makecss

About

Campus Sustainability Hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.0%
  • HTML 16.8%
  • JavaScript 1.7%
  • CSS 1.5%