Skip to content

Latest commit

 

History

163 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAIR:PLAY Hackathon Repo

This project uses Django.

Before you create a workspace in Cloud9, do the steps below to make sure your SSH key is set up.

SSH Key steps

  1. In Cloud9, go to the settings and click on the "SSH Keys" tab.
  2. Copy the ssh key and go to your Github account settings.
  3. Click on "SSH and GPG Keys", then click add "New SSH Key". Put "Cloud9" for the title and then paste in the key from Cloud9.
  4. Click "Add SSH Key".
  5. Next, edit or create an authorized_keys file.
  6. touch ~/.ssh/authorized_keys
  7. Paste in your SSH key from Cloud9, the same one that you pasted into Github.

Getting Started

  1. Create an account in Cloud9 and log in.
  2. Click Create a new workspace. Name your workspace something like "fair-play-hackathon" whatever.
  3. In the field that says Clone from Git or Mercurial URL, put in git@github.com:silverli/FairPlay.git
  4. Under Choose a Template, pick "Django".

Running your new Django app

When you run the project, you will run into errors.

Type in sudo pip install psycopg2

Start the database with sudo service postgresql start

Create the database

  1. Type psql to open the interactive terminal for working with Postgres
  2. Create a user called fairplay create user fairplay;
  3. Then do create database fairplay; to create a database called fairplay
  4. alter user fairplay with password 'JmUbR3dUojwuirGk2Kls';
  5. alter user fairplay with superuser;
  6. To quit this terminal type \q.
  7. Unzip the database file gunzip dbexport.pgsql.gz
  8. Then do psql -d fairplay -f dbexport.pgsql
  9. Upgrade Django with sudo pip install --upgrade Django

Running the app

  1. Then do python manage.py createsuperuser to create a new user for logging into the app.
  2. Press the green button and run the app!
  3. Go to your admin /admin

About

Repository for 2016 Hackathon for FAIR:PLAY

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages