Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 2.35 KB

README.md

File metadata and controls

76 lines (52 loc) · 2.35 KB

osm-teams 🤝

Check the beta 👉 https://mapping.team

Development

Install requirements:

Visit your OpenStreetMap settings page and register an OAuth1 Client App:

OSM Client App

Create an .env file by copying .env.sample and replacing the values as needed. OSM_CONSUMER_KEY and OSM_CONSUMER_SECRET are values available at the OAuth app page on openstreetmap.org. The .env file should contain:

```bash
OSM_CONSUMER_KEY=<osm-teams-app>
OSM_CONSUMER_SECRET=<osm-teams-app-secret>
DSN=postgres://postgres@dev-db/osm-teams?sslmode=disable
```

Start Hydra and PostgreSQL with Docker:

docker-compose -f compose.dev.yml up --build

On a separate terminal, create the first-party "manage" app:

docker-compose exec hydra hydra clients create --endpoint http://localhost:4445 \
  --id manage \
  --secret manage-secret \
  --response-types code,id_token \
  --grant-types refresh_token,authorization_code \
  --scope openid,offline,clients \
  --callbacks http://localhost:8989/login/accept

Install Node.js the required version (see .nvmrc file):

nvm i

Install Node.js modules:

yarn

Migrate dev-db database:

yarn migrate

Start development server:

yarn dev

✨ You can now login to the app at http://localhost:8989

Acknowledgments