https://github.com/avanov/assignment
https://github.com/avanov/assignment
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avanov/assignment
- Owner: avanov
- License: mit
- Created: 2016-03-02T11:11:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T18:37:24.000Z (over 10 years ago)
- Last Synced: 2024-10-06T06:03:21.026Z (over 1 year ago)
- Language: Python
- Size: 49.8 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Host prerequisites
------------------
* Vagrant >= 1.8
* Python 2.7.x (required for Ansible CLI);
* Ansible >= 2.0
Bootstrapping development environment
-------------------------------------
Run
.. code::
$ git clone https://github.com/avanov/assignment.git
$ cd
$ vagrant up
Running a development server
----------------------------
After a new VM is provisioned, run
.. code::
$ vagrant ssh
vagrant@vagrant-ubuntu-*:~$ cd /vagrant
vagrant@vagrant-ubuntu-*:/vagrant$ pyenv activate assignment
(assignment) vagrant@vagrant-ubuntu-*:/vagrant$ runme ./config.yml
You can terminate the server by sending it a SIGINT (Ctrl-C from an interactive session).
Once the server is up and running, point your browser (host machine) to
``HTTP GET http://localhost:38000/probabilities/american/inventor/male``
to get a sample output based on a provided dataset.
Test framework
--------------
Run existing test suite with
.. code::
(assignment) vagrant@vagrant-ubuntu-*:/vagrant$ py.test