Skip to content

This is a new website for Colonial which contains a members only section of the page.

Notifications You must be signed in to change notification settings

ColonialDevelopment/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

website

This is a new website for Colonial which contains a members only section of the page.

Backend Setup (Django)

You need to use virutalenv to use the virtual environment for this project

  1. First you need to use pip to install virtualenv

$ pip install virtualenv

  1. Next use virtualenv to create your environment folder, where all your installed python modules will live.

$ virtualenv env OR ALTERNATIVELY $ virtualenv venv

  1. Next you need to go activate your virtualenv

$ source env/bin/activate

  1. Next you need to install the requirements for the project in your env folder

(env) $ pip install -r requirements.txt

  1. If you ever need to install something new, add it to requirements.txt, in the following form:

module-name >= x.x.x

This way we will all have consistent dependencies and modules and we will also have a consistent environment with what we end up using in deployment.

Finally, perform migrations and start the server.

(env) $ python manage.py migrate

(env) $ python manage.py runserver

If you wish to temporarily edit local settings, one method is to create a file colonialsite/colonialsite/local_settings.py; settings in this file will override any settings in settings.py.

Frontend Setup

First, in order to pass CAS authentication, your NetID needs to be in the members.csv file. Copy the example_members.csv file, rename it, and put your NetID in it.

$ cd colonialsite/coloauth

$ cp example_members.csv members.csv

Alternatively, you can create a local superuser and login through /staff/login/.

Next, you'll need Node.js and NPM installed to run the webpack server. Once you install Node.js and NPM, install dependencies:

$ cd colonialsite

$ npm install

Finally, run the webpack server.

$ node server.js

Other

These are the developers:

PM: Nicholas Yang '18

Frontend: Mel Shu '19 Jay Lee '19

Backend: Victor Zhou '19 Bryan Zhu '19 Julie Zhu '19

Alumni: Andrew Ruchames '17

About

This is a new website for Colonial which contains a members only section of the page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published