|
1 | 1 | # Development Guidelines |
2 | 2 |
|
| 3 | +## Getting Started |
| 4 | + |
| 5 | +You would need a local clone of the `dandi-archive` repository to develop on it. |
| 6 | + |
| 7 | +1. Run `git clone https://github.com/dandi/dandi-archive` |
| 8 | +2. Run `cd dandi-archive` |
| 9 | +3. Make sure your PostgreSQL port (5432) is available (recommended), or |
| 10 | +export `DOCKER_POSTGRES_PORT` environment variable to point to an alternative port. |
| 11 | + |
3 | 12 | ## Develop with Docker (recommended quickstart) |
4 | 13 | This is the simplest configuration for developers to start with. |
5 | 14 |
|
@@ -43,7 +52,7 @@ but allows developers to run Python code on their native system. |
43 | 52 | pip install psycopg2 |
44 | 53 | ``` |
45 | 54 | 5. Create and activate a new Python virtualenv |
46 | | -6. Run `pip install -e .[dev]` |
| 55 | +6. Run `pip install -e ".[dev]"` |
47 | 56 | 7. Run `source ./dev/export-env.sh` |
48 | 57 | 8. Run `./manage.py migrate` |
49 | 58 | 9. Run `./manage.py createcachetable` |
@@ -85,7 +94,7 @@ the appropriate `dev/.env.docker-compose*` file as a baseline for overrides. |
85 | 94 | ### Initial Setup |
86 | 95 | tox is used to execute all tests. |
87 | 96 | tox is installed automatically with the `dev` package extra. |
88 | | -To install the tox pytest dependencies into your environment, run `pip install -e .[test]`. |
| 97 | +To install the tox pytest dependencies into your environment, run `pip install -e ".[test]"`. |
89 | 98 | These are useful for IDE autocompletion or if you want to run `pytest` directly (not recommended). |
90 | 99 |
|
91 | 100 | When running the "Develop with Docker" configuration, all tox commands must be run as |
|
0 commit comments