#snap-server
A new backend for saving and sharing Snap! projects.
Dependencies: sqlalchemy Falcon For decent performance, need Gevent
Supports Python 2.6 through 3.x
- Download and install git from http://git-scm.com/download/
- Clone the repository with
git clone git@github.com:cs10/snap-server.git - cd to the directory where you have cloned this repo
sudo easy_install pippip install virtualenvvirtualenv --distribute virtsource virt/bin/activateto activate the virtualenv - be sure to activate the virtualenv before taking any actionspip install -r requirements.txt(Needed for any change to the requirements file)
##Running the server
- cd to the directory where you have cloned this repo
source virt/bin/activateps aux | grep 5000 | grep -v grep | awk '{print $2}' | xargs kill -9will kill any processes running on port 5000.python dev.py- it should be serving at http://localhost:5000
##Using the server
- Open
http://localhost:5000/createUserand enter info for a test user - Look at the bottom server.py to find the URL routes
For example, try
http://localhost:5000/createProjectandhttp://localhost:5000/loadProject - You can can open a Python shell with
python -i- rest coming soon