Systers Portal is for Systers communities to post and share information within and with other communities.
Our project page >> http://systers.github.io/portal/
More information on technical architecture of this project coming soon...
- Make sure you have installed Python 2.7 or above (preferably latest minor release), pip and virtualenv.
- Make sure you have PostgreSQL installed.
- Clone the repo -
git clone [email protected]:systers/portal.git
and cd into theportal
directory. - Create a virtual environment and install dependencies:
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements/dev.txt
- Create
systersdb
database, wheresystersdb
might be any suitable name. - Fill in the database details in
systers_portal/settings/dev.py
. - Run
export SECRET_KEY=foobarbaz
in your terminal, ideally the secret key should be 40 characters long, unique and unpredictable. Optionally to set the shell variable every time you activate the virtualenv, editvenv/bin/activate
and add to the bottom the export statement. - Run
python systers_portal/manage.py migrate
. - Run
python systers_portal/manage.py createsuperuser
to create a superuser for the admin panel. Fill in the details asked. - Run
python systers_portal/manage.py runserver
to start the development server. When in testing or production, feed the respective settings file from the command line, e.g. for
testingpython manage.py runserver --settings=systers_portal.settings.testing
- Before commiting run
flake8 systers_portal
and fix PEP8 warnings - Run
python systers_portal/manage.py test --settings=systers_portal.settings.testing
to run all the tests
Documentation for Systers Portal is generated using Sphinx and available online at http://systers-portal.readthedocs.org/
To build the documentation locally run:
$ cd docs/
$ make html
To view the documentation open the generated index.html
file in browser -
docs/_build/html/index.html
.
For more information on semantics and builds, please refer to the Sphinx official documentation.
You can view the requirements document here.