You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the rest of this documentation, we will assume that the database location is `postgres://postgres@localhost/osm-teams?sslmode=disable` on your local machine. Inside docker, that location is `postgres://[email protected]/osm-teams?sslmode=disable`
18
17
19
-
2. Create a a `.env` file by copying `.env.sample` and replacing the values as needed. `OSM_CONSUMER_KEY` and `OSM_CONSUMER_SECRET` are values obtained by creating a new OAuth app on openstreetmap.org. The .env file can contain:
docker-compose run --rm hydra migrate sql --yes postgres://[email protected]/osm-teams?sslmode=disable
30
-
```
23
+
For the rest of this documentation, we will assume that the database location is `postgres://postgres@localhost/osm-teams?sslmode=disable` on your local machine. Inside docker, that location is `postgres://[email protected]/osm-teams?sslmode=disable`
31
24
32
-
4. Build the images:
33
-
```
34
-
docker-compose build
35
-
```
25
+
1. Create an `.env` file by copying `.env.sample` and replacing the values as needed. `OSM_CONSUMER_KEY` and `OSM_CONSUMER_SECRET` are values obtained by creating a new OAuth app on openstreetmap.org. The .env file can contain:
1. Install Javascript dependencies and migrate the osm-teams database
35
+
36
+
```bash
37
+
nvm use
38
+
yarn install
39
+
yarn run migrate
40
+
```
41
+
42
+
1. Migrate the Hydra database
43
+
44
+
```bash
45
+
docker-compose run --rm hydra migrate sql --yes postgres://[email protected]/osm-teams?sslmode=disable
46
+
```
47
+
48
+
1. Build the docker images:
49
+
50
+
```bash
51
+
docker-compose build
52
+
```
53
+
54
+
1. Start Hydra and the server
55
+
56
+
```bash
57
+
docker-compose -f docker-compose.dev.yml up
58
+
```
41
59
42
60
⚠️ In development, `docker-compose -f docker-compose.dev.yml up` enables hot module reloading while you make modifications to the code. `docker-compose up` should be used for production/staging deployments.
43
61
44
62
This will start hydra where the token issuer is at `http://localhost:4444` and the admin interface is at `http://localhost:4445`. This also sets up the consent and login interface at `http://localhost:8989` (where we will create a first-party oauth app)
45
63
46
-
### Setting up the first party app
64
+
### Setting up the OSM-teams app
47
65
48
-
Create the first party "manage" app
49
-
```
66
+
Create the [first-party](https://auth0.com/docs/applications/concepts/app-types-first-third-party) "manage" app
0 commit comments