-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from zembrodt/develop
Merge 0.5.1-dev into main
- Loading branch information
Showing
41 changed files
with
1,125 additions
and
418 deletions.
There are no files selected for viewing
This file contains 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,27 +1,16 @@ | ||
## ShowTunes Dev Information | ||
|
||
### ShowTunes API | ||
An instance of showtunes-api must be running. | ||
The url of this instance must be provided in `src/assets/config/config.dev.json` | ||
under `"auth" / "tokenUrl"` | ||
|
||
Example: `"tokenUrl": "https://showtunes-api.herokuapp.com/api/auth/tokens"` | ||
|
||
### Spotify Callbacks | ||
The Spotify API must have a callback URL for authentications. This CAN be done via localhost, | ||
but can also be done using a tool such as [ngrok](https://ngrok.com/) to point an external IP | ||
to your localhost port. | ||
|
||
To use ngrok: | ||
- Install ngrok, set it up with your account, and configure locally | ||
- Launch ngrok in a command window to point at your Angular app's port (default 4200): `ngrok http 4200` | ||
- Copy the forwarding URL (example: `http://{generated subdomain}.ngrok.io`) for config | ||
The Spotify API must have a callback URL for authentications. This CAN be done via localhost. | ||
|
||
To launch the application: | ||
- Add url (either `http://localhost:{port}` or ngrok url) to `config.dev.json` under `"env" / "domain"` | ||
- Add url (`http://localhost:{port}` for example) to `config.dev.json` under `"env" / "domain"` | ||
- Log into Spotify developer dashboard https://developer.spotify.com/dashboard | ||
- Create app or select current one, edit settings, add `{ngrok/localhost URL}/callback` under "Redirect URIs" and save | ||
- Add the Client ID from Spotify developer dashboard in config file as `"auth" / "clientId"` | ||
- Create app or select current one, edit settings, add `{domain URL}/callback` under "Redirect URIs" and save | ||
|
||
### Launching the application | ||
- Launch Angular application as `ng serve --disable-host-check` | ||
- Add parameter `--host 0.0.0.0` if using ngrok | ||
- Access Angular application with ngrok or localhost URL to test changes locally | ||
- Access Angular application with the localhost URL to test changes locally | ||
|
||
### Testing the application | ||
- Use `ng test` to run all unit tests | ||
- Use `ng test --include='**/{directory}/*.spec.ts` to run all tests within a specific directory |
This file contains 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
Oops, something went wrong.