We are developing a web app inspired by https://receiptify.herokuapp.com/ in GAE and Flask for CS1520.
To properly interact with any server data, ensure the project is set to the cs1520moodify
cloud instance.
$ gcloud config set project cs1520moodify
- Set up CLIENT_ID and CLIENT_SECRET in main.py (a more secure way to store keys and secrets will be implemented soon)
- In your terminal, go to
/client/
folder
Run below CLI commands
$ npm i
$ npm run create-deployable
$ cd api
$ dev_appserver.py app.yaml
- Open web preview.
- Add a url to the redirect uri(s) in your spotify dashboard.
- Set the url to the redirect uri in
main.py
For our development phase, you must add your client id and secret from the spotify dashboard for the API to work. Also depending on your development environment, you must add the appropriate redirect URIs (where can Spotify.com go after verification?)
Example of a Spotify Redirect URI List
$ cd api
$ python3 setup.py install
$ flask run
$ cd client
$ npm install
$ npm run start
Work in Progress... This doesn't work yet
https://cloud.google.com/build/docs/deploying-builds/deploy-appengine#yaml
gcloud builds submit --region=us-east1 /client/