This repository was archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Clarify Local Hosting Documentation #44
Open
wtokumaru
wants to merge
15
commits into
chronoscio:master
Choose a base branch
from
wtokumaru:clarify
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
69c623e
Move CONTRIBUTING.md to docs/.
wtokumaru f04a1a2
Minor context comments on hidden files.
wtokumaru 0a95b22
Fix links for contributing at bottom of README.
wtokumaru a3c77b2
Add brief summary of codebase layout to README.
wtokumaru 59afcbb
Move Local Development instructions to README and embellish them.
wtokumaru 70650eb
Add more detail about Local Development.
wtokumaru 3e0d9a0
Clarify Auth0 usage when hosting locally.
wtokumaru be78185
Revise lint/format meta comments.
wtokumaru 86985af
Request user to set auth0 domain too.
wtokumaru 6894f5f
Modify clarifications to be a bit less wordy.
wtokumaru b45f548
Tentatively put bash for quality standards though the file is not nec…
wtokumaru 4068a05
Update url, .travis.yml, and other tweaks reqested in review.
wtokumaru 3a3ee8d
Undo changes to settings.py for now for CI.
wtokumaru a76de9b
Update README for undoing changes to .travis.yml and settings.py.
wtokumaru 830f49a
Resolve style file merge conflicts.
wtokumaru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| # Define what we choose not to track on git. | ||
|
|
||
| ### Django ### | ||
| *.log | ||
| *.pot | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,9 +29,11 @@ which provides us with a stateless JWT which can be validated through their serv | |
| [access token](https://auth0.com/docs/tokens/access-token) is required to be passed to the | ||
| backend. You can run tests locally with your own Auth0 configuration as follows: | ||
|
|
||
| 1. Log into https://manage.auth0.com/#/applications | ||
| 2. Create Application > All Scopes > Authorize | ||
| 3. See the `client_id`, `client_secret`, and `audience` variables in the example cURL | ||
| 1. Log into https://manage.auth0.com/#/applications. It does not matter what names you select. | ||
| 2. Create Application > All Scopes > Authorize. Or just create a SPA (Single Page Application). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm going to have to look into this for the proper procedure. See #39.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know. I had not gotten around to reading that issue yet. |
||
| 3. See the `client_id`, `client_secret`, and `audience` variables in the example cURL. | ||
|
|
||
| You should not have to do anything with this information, just make sure that it exists. | ||
|
|
||
| ### Database | ||
|
|
||
|
|
@@ -47,17 +49,6 @@ principally interacted with via a `Makefile`. Running `make` or `make help` will | |
| a documented list of all available commands and shortcuts to help with development, so | ||
| a nuanced understanding of docker is not necessary for code contribution. | ||
|
|
||
| ## Local Development | ||
|
|
||
| If you are having trouble with Docker (e.g. on Windows), this project can also be run locally with | ||
| the following changes: | ||
|
|
||
| - Create a python virtualenv, activate it, and install the package requirements: | ||
| `cd backend; virtualenv venv; source venv/bin/activate; pip install -r config/requirements.txt` | ||
| - Install and run Postgres locally | ||
| - Change your DATABASES > default > HOST variable to `localhost` (and maybe change the port to | ||
| match your Postgres database) | ||
|
|
||
| ## API endpoints | ||
|
|
||
| ```bash | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.