Skip to content

smillerpy/shoes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Zapatos

Install

To use this project follow these steps:

  1. $ git clone git@github.com:smillerpy/shoes.git
  2. $ pip install django
  3. $ mkvirtualenv super
  4. $ pip install -r requirements/local.txt
  5. $ chmod 766 manage.py
  6. $ ./manage.py migrate

Start server

  1. $ ./manage.py runserver

Usage examples:

Get the list of stores: curl -u my_user:my_password http://localhost:8000/services/stores/

Create a new store curl -H "Content-Type: application/json" -X POST -d '{"name":"aaaa","address":"xyz"}' -u my_user:my_password http://localhost:8000/services/stores/

Or you can go to this urls in a navegator an explre them with a cool interface. Remmember to register

RUN TESTS

  1. $ ./manage.py test

The tests are for store only. You may need to follow the following steps to install phantomjs. (You may get and error asking for it if that is the case)

  1. $ sudo apt-get install software-properties-common
  2. $ sudo apt-get update
  3. $ sudo apt-get install -y python-software-properties python g++ make
  4. $ sudo add-apt-repository -y ppa:chris-lea/node.js
  5. $ sudo apt-get update
  6. $ sudo apt-get install nodejs
  7. $ sudo apt-get install fontconfig
  8. $ sudo npm -g install phantomjs

Happy evaluating!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages