Skip to content

Commit

Permalink
Update to include bootstrap and npm
Browse files Browse the repository at this point in the history
Thanks to an issue raised by Samir, I've updated this draft to include more detail. It adds two steps I had forgotten - installing the CDK via npm and calling cdk bootstrap.
  • Loading branch information
jonodrew committed Apr 28, 2021
1 parent 2de0ed8 commit c85bbe0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ You'll need to use the terminal. All of these instruction assume you're in the r
```
infrastructure LICENSE README.md requirements.txt runtime
```
The first thing we're going to do is create a virtual environment to run our python code in:
Before we start, we need to install the 'cloud delivery kit', or CDK. We do this by typing `npm install -g aws-cdk` and hitting return. If you now try `cdk --version`, you should get something a bit like `1.83.0 (build 827c5f4)`.

Alright, we're ready to go. The first thing we're going to do is create a virtual environment to run our python code in:
`python3 -m venv venv`

your computer will think about it for a while.

once it's finished thinking, activate the virtual environment by typing `. venv/bin/activate` and install all the project's requirements by typing `pip install -r requirements.txt`. This will isntall everything in `runtime/requirements.txt` and `infrastructure/requirements.txt`
once it's finished thinking, activate the virtual environment by typing `. venv/bin/activate` and install all the project's requirements by typing `pip install -r requirements.txt`. This will install everything in `runtime/requirements.txt` and `infrastructure/requirements.txt`

First things first - let's run the tests and make sure everything's set up correctly. Change directory to the runtime directory by typing `cd runtime` into your terminal. Then run the tests by typing `python -m pytest`

If these fail, then something has already gone wrong. Please raise an issue on this project with as much detail as possible, including what the computer spat back at you.

From the infrastructure folder - cdk-list-follower/infrastructure - type `cdk deploy` into your terminal
Change directory to the infrastructure folder (cdk-list-follower/infrastructure). If this is your first time running this app, type `cdk bootstrap` and hit return to set up the infrastructure.

Once that's been done once, deploying is just a matter of typing `cdk deploy` into your terminal

0 comments on commit c85bbe0

Please sign in to comment.