pyconca/2016-symposion

Name: 2016-symposion

Owner: PyCon Canada

Description: Symposion app for PyCon Canada 2016.

Created: 2016-06-09 22:45:45.0

Updated: 2016-07-08 19:13:33.0

Pushed: 2016-10-09 00:39:16.0

Homepage:

Size: 635

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

PyCon Setup

ToDo
Building site.css
  1. Install nvm.

  2. Install a version of NodeJS via nvm.

    urce ~/.nvm/nvm.sh  # or where ever you installed nvm.sh
    m install <VERSION>
    
  3. Install the dependencies:

    m install -g less uglify-js
    
  4. Build site.css (from the project root):

    ke site.css
    
Dev quickstart
  1. Clone the repo
  2. cd 2016-symposion
  3. Create virtualenv (ex. mkvirtualenv pycon_symposion)
  4. Activate virtualenv
  5. Install requirements: pip install --upgrade -r requirements.txt
  6. python manage.py collectstatic
  7. python manage.py migrate
  8. python manage.py runserver

NOTE: default development settings module is symposion2016.settings.dev

Development Environment Setup

You will need the following:

Start by cloning the repository:

t clone git@github.com:pyconca/2016-symposion.git 2016-symposion
 2016-symposion

Create a python virtual environment:

virtualenv pycon_symposion
on_symposion) ~/2016-symposion $

The (pycon_symposion) prefix indicates that a virtual environment called “pycon_symposion” is being used. Next, check that you have the correct version of Python:

on_symposion) ~/2016-symposion $ python --version
on 2.7.12
on_symposion) ~/2016-symposion $ pip --version
8.0.2 from /Users/.../site-packages (python 2.7)

Make sure that postgres development package is installed

titude install postgresql-server-dev-9.5

Install the project requirements:

on_symposion) ~/2016-symposion $ pip install --upgrade -r requirements.txt

Collect the static assets:

on_symposion) ~/2016-symposion $ python manage.py collectstatic

Create the database:

on_symposion) ~/2016-symposion $ python manage.py migrate

Run the project:

on_symposion) ~/2016-symposion $ python manage.py runserver
Extra/Optional PyConCA Custom Symposion

Clone the symposion repository in a new directory:

on_symposion) ~/2016-symposion $ cd ..
on_symposion) $ git clone git@github.com:pyconca/symposion.git symposion
on_symposion) ~/symposion $ cd ~/symposion

Next replace the GitHub version of symposion with your local copy:

on_symposion) ~/symposion $ python setup.py develop
Deployment

Have database password handy and run:

fab <environment> deploy -i <path/to/pub_key>

Environments:

Symposion docs

Base Project Symposion Project Docs


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.