Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.5 KB

1.md

File metadata and controls

57 lines (39 loc) · 1.5 KB

Step 1: Checkout the untested source

In the first step, you will checkout the catinabox source and start the server.

  1. Fork catinabox.

  2. Checkout your fork:

christie@paw-paw:~$ git clone https://github.com/<MYUSERNAME>/catinabox.git
  1. Before we try anything, let's update pip and virtualenv to make sure we're on the same page:

    christie@paw-paw:~$ pip install --upgrade pip
    christie@paw-paw:~$ pip install --upgrade virtualenv
  2. Create a virtual environment for running `catinabox``:

christie@paw-paw:~$ cd catinabox
christie@paw-paw:~/catinabox$ virtualenv catpy
  1. Activate your virtual environment:
christie@paw-paw:~/catinabox$ source catpy/bin/activate
(catpy)christie@paw-paw:~/catinabox$

You are now in your virtual environment, as indicated by the (catpy) prefix in your shell prompt.

  1. Setup your development environment and install dependencies:
(catpy)christie@paw-paw:~/catinabox$ python setup.py develop
  1. Run catinabox using the cattery entrypoint, which runs using nameko
(catpy)christie@paw-paw:~/catinabox$ nameko run catinabox.services.cattery_service
  1. Observe the running catinabox webserver using your browser:

http://localhost:8000

Wow! catinabox runs! Great! But how confident are we that it does what it's supposed to do?