Skip to content

Commit

Permalink
token_template + readme
Browse files Browse the repository at this point in the history
  • Loading branch information
njakuschona committed Dec 22, 2020
1 parent fd775aa commit 5866e4e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ hs_err_pid*

.idea/
node_modules/
private/
tokens.js
package-lock.json

api/config.yml
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,40 @@

#### Accident data source
https://unfallatlas.statistikportal.de/

## Getting Started


To get a local copy up and running follow these simple steps.

### Prerequisites

Install npm
* npm
```sh
npm install npm@latest -g
```

### Installation

1. Clone the repo
```sh
git clone https://github.com/NJaku01/NJaku01.github.io.git
```
2. Install NPM packages
```sh
npm install
```

3. Get your openrouteservice token at https://openrouteservice.org/dev/#/signup

4. Rename the tokens_template.js file inside the private folder to tokens.js

5. Add your key, received in step 3, at the routing spot in the tokens.js file

6. Start the application
```sh
npm start
```

7. Go to the application under https://localhost:3000
6 changes: 6 additions & 0 deletions private/tokens_template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if (typeof exports == "undefined"){
var exports = window;
};
exports.token = {
routing: "your-token", // get it here: https://openrouteservice.org/dev/#/signup
};

0 comments on commit 5866e4e

Please sign in to comment.