|
4 | 4 |
|
5 | 5 | ## Quick start
|
6 | 6 |
|
7 |
| -You will need npm (for javascript dependencies) and poetry (for python dependencies). |
| 7 | +Please refer to Prerequisites for dependencies and installation instructions |
8 | 8 |
|
9 | 9 | 1. Run `poetry install` to install python dependencies
|
10 | 10 | 1. Run `npm install` to download frontend static dependencies.
|
11 | 11 | 1. Run `poetry run python -m nltk.downloader punkt` to install nltk data
|
12 |
| -1. Copy `.env.example` to `.env`. |
13 |
| -1. You wil need to obtain an access token from Datahub catalogue and populate the |
14 |
| - `CATALOGUE_TOKEN` var in .env to be able to retrieve search data. |
| 12 | +1. Set the `ENV` var to `local` i.e. `export ENV=local` |
| 13 | +1. Run `op inject --in-file .env.tpl --out-file .env` to generate a compatible `.env` file |
| 14 | +1. Optionally substitute value for `CATALOGUE_TOKEN` var in .env with your own PAT value to be able to retrieve search data. |
15 | 15 | 1. Run `poetry run python manage.py runserver`
|
16 | 16 |
|
17 | 17 | ```sh
|
18 | 18 | poetry install --no-root
|
19 | 19 | npm install
|
20 | 20 | poetry run python -m nltk.downloader punkt
|
| 21 | +export ENV=local |
| 22 | +op inject --in-file .env.tpl --out-file .env |
21 | 23 | poetry run python manage.py runserver
|
22 | 24 | ```
|
23 | 25 |
|
| 26 | +# Prerequisites |
| 27 | + |
| 28 | +## Npm |
| 29 | + Required for building the front end javascript dependencies |
| 30 | + |
| 31 | +## Poetry |
| 32 | + Required for managing python package dependencies. |
| 33 | + Follow installation instructions here https://python-poetry.org/docs/#installation |
| 34 | + |
| 35 | +## 1Password |
| 36 | + Organisational level tool for storing application secrets and passwords securely. |
| 37 | +There are a number of 1password utilities available to manage credentials from cli and desktop environments. |
| 38 | + |
| 39 | +1. Install the 1Password desktop app - https://support.1password.com/get-the-apps/ |
| 40 | +2. Install the 1Password CLI app - https://developer.1password.com/docs/cli/get-started/ |
| 41 | +3. Follow the steps to turn on and test the 1password desktop app integration |
| 42 | + |
24 | 43 | ## Current Endpoints
|
25 | 44 |
|
26 | 45 | /search
|
|
0 commit comments