Skip to content

Commit 06e9f2a

Browse files
committed
Update README.md
1 parent 7cf210e commit 06e9f2a

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

00-Starter-Seed/README.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,21 @@ Once you've set those 2 enviroment variables:
2727
2. Start the server with `python server.py`
2828
3. Try calling [http://localhost:3001/ping](http://localhost:3001/ping)
2929

30-
# Running the example with Docker
31-
32-
In order to run the example you need to have `docker` installed.
33-
34-
You also need to set your Auth0 Domain and the API's audience as environment variables with the following names
35-
respectively: `AUTH0_DOMAIN` and `API_ID`, which is the audience of your API. You can find an example in the
36-
`env.example` file.
37-
38-
For that, if you just create a file named `.env` in the directory and set the values like the following,
39-
the app will just work:
40-
41-
```bash
42-
# .env file
43-
AUTH0_DOMAIN=example.auth0.com
44-
API_ID=YOUR_API_AUDIENCE
45-
```
46-
47-
Once you've set those 2 enviroment variables:
48-
49-
1. Execute in command line `sh exec.sh` to run the Docker in Linux, or `.\exec.ps1` to run the Docker in Windows.
50-
2. Try calling [http://localhost:3001/ping](http://localhost:3001/ping)
51-
5230
# Testing the API
5331

5432
You can then try to do a GET to [http://localhost:3001/secured/ping](http://localhost:3001/secured/ping) which will
5533
throw an error if you don't send an access token signed with RS256 with the appropriate issuer and audience in the
5634
Authorization header.
5735

58-
You can also try to do a GET to
36+
You can also try to do a GET to
5937
[http://localhost:3001/secured/private/ping](http://localhost:3001/secured/private/ping) which will throw an error if
6038
you don't send an access token with the scope `read:agenda` signed with RS256 with the appropriate issuer and audience
6139
in the Authorization header.
40+
41+
# Running the example with Docker
42+
43+
In order to run the sample with [Docker](https://www.docker.com/) you need to add the `AUTH0_DOMAIN` and `API_ID`
44+
to the `.env` filed as explained [previously](#running-the-example) and then
45+
46+
1. Execute in command line `sh exec.sh` to run the Docker in Linux, or `.\exec.ps1` to run the Docker in Windows.
47+
2. Try calling [http://localhost:3001/ping](http://localhost:3001/ping)

0 commit comments

Comments
 (0)