- Visit https://github.com/typicode/json-server to read about json-server
- On the command line sudo npm install -g json-server
- Download data.json from https://github.com/typicode/jsonplaceholder/blob/master/data.json to a local path (~/code/json-server e.g)
- Start the api with 'json-server --watch data.json'
- Test if you are able to hit the server at http://localhost:3000
- install pip for managing python and its packages
- Setup a virtual environment for your python using instructions at http://virtualenvwrapper.readthedocs.io/en/latest/install.html
- mkvirtualenv api_tests
- workon api_tests
- pip install -r requirements
- At this point your environment is all set to run tests.
nosetests -sv test_json_api.py
nosetests -a smoke