#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 [email protected]:cs10/snap-server.git
- cd to the directory where you have cloned this repo
sudo easy_install pip
pip install virtualenv
virtualenv --distribute virt
source virt/bin/activate
to 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/activate
ps aux | grep 5000 | grep -v grep | awk '{print $2}' | xargs kill -9
will 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/createUser
and enter info for a test user - Look at the bottom server.py to find the URL routes
For example, try
http://localhost:5000/createProject
andhttp://localhost:5000/loadProject
- You can can open a Python shell with
python -i
- rest coming soon