-
Notifications
You must be signed in to change notification settings - Fork 7
Setting up a local eyebrowse server
Amy Zhang edited this page Oct 19, 2013
·
6 revisions
Install dependencies virtualenv, pip, mysql, and Python 2.7.
- Fork or clone the github repo into a local folder.
- Create a virtualenv for eyebrowse-server. Make sure you enable the eyebrowse-server virtualenv everytime you work with eyebrowse-server (
source $VIRTUAL_ENV_FOLDER/bin/activate). With the virtual-env enabled, runpip install -r requirements.txtfrom within the main eyebrowse-server folder to install all required python libraries. - Get a local mysql database running. Within this local mysql, create a database
eyebrowse. Create a useradmin@localhost, give it a password, and give it permissions to theeyebrowsedatabase. - If you are developing with eclipse, open up the PyDev management console and create a new Django PyDev project. Make sure the project contents point to where you cloned the repo. Set the interpreter from default to the python executable within the virtualenv you set up in (2).
- Inside the main folder (where manage.py is located), create a new file
config.py. For now, please contact either Josh or Amy for a copy of this file. When you receive it, make sure to update the MYSQL_LOCAL variable with your personal mysql password. - Go to the main eyebrowse-server folder and run the command
python manage.py syncdb. This will set up a number of tables and entries in your mysql db. When it prompts you to create a superuser, go ahead and create one. This is your login to the eyebrowse website and admin page. - Run the eyebrowse server by running
python manage.py runserverfrom the main folder or selecting Run As... in eclipse (make sure to play a python django app, not python script). - Access 127.0.0.1:8000 in your browser to see the app in action. You should already have an account. You can also access the django admin page at 127.0.0.1:8000/admin/ and typing in your superuser information.