Setting up the environment

Like all the previous chapters, we are going to start off this chapter by setting up the environment that we need to develop our services on. Let's start by creating our working directory:

mkdir microservices && cd microservices

Then, we create our virtual environment with pipenv:

pipenv --python ~/Install/Python3.6/bin/python3.6
If you don't know how to use pipenv, in the section Setting up the environment in Chapter 4, Exchange Rates and the Currency Conversion Tool, there is a very good introduction about how to get started with pipenv.

With the virtual environment created, we need to install the project dependencies. For this project, we are going to install Django and the Django REST Framework:

pipenv install ...

Get Python Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.