Skip to content

hackny2017labs/csforall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSFORALL Summit Commitments Project

pip freeze > requirements.txt # when you commit, don't forget to update required packages you used

Setting up the project

Clone the repo

As of right now, the web url is https://github.com/hackny2017labs/csforall.git

git clone https://github.com/hackny2017labs/csforall.git
cd csforall/

MySQL installation

Check here for the relevant install for your OS https://dev.mysql.com/downloads/mysql/

Go through installation and !! TAKE NOTE OF PASSWORD !!

Set up virtual environment & requirements

If you don't already have virtualenv then install it before setting it up

sudo pip install virtualenv

While inside csforall directory, activate virtual environment to install relevant packages:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt # install the necessary requirements

MySQL Setup

If this is the first time setting up mysql, there's some overhead to get it working. You need to start the mysql server, and you can use this link to do so for relevant OS: https://dev.mysql.com/doc/refman/5.7/en/installing.html

On OS X, I was able to go to systems preferences, search mysql and manually turn on the server

Add mysql to path (optional)

export PATH=${PATH}:/usr/local/mysql/bin/
# this is for mac osx

Now you have to set up the password and database that corresponds to our settings in csforall/cs4all/settings.py

mysql
mysql -u root -p
# You'll be prompted for the password from installation (the one you took note of hopefully)

And in mysql:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'cs4JustAboutEverybody!'; # change to relevant password
CREATE DATABASE cs4AllDB character set utf8; # I'm told Django expects utf8. The name is for convenience.
exit

Run the server

cd csforall/ # the root file you cloned originally
python manage.py makemigrations # sometimes you have to do this for different apps-- add the app name in that case
python manage.py migrate
python manage.py runserver

If this doesn't get everything set up, add relevant info to this doc

About

The CSforAll Summit Commitments project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •