link: http://spotify-env.eba-yiivtcr7.us-east-1.elasticbeanstalk.com/
- get
pip
- create
.gitignore
file copied from online example - create virtual environment
$ python3 -m venv .venv
and activate$ source .venv/bin/activate
- create
requirements.txt
by installing whatever packages (spotipy, flask) and then$ pip freeze > requirements.txt
- commit files locally to
.git
$ git add .
$ git commit -m 'my message'
- create new repository and create the connection in terminal
$ git remote add origin https://github.com/username/repo.git
$ git branch -M main
$ git push -u origin main
- log in using username and password should be a personal access token that can be generated in github account settings -> developer settings
- now everything should be on github repository
- create aws account
- go to Elastic Beanstalk
- create application
- create environment with python3 since this is flask application and choose sample application for now because you'll push your code after
- now go to codepipeline, create pipeline with matching name to your application, source provide should be github (version 2), sign into github and allow just the repository that we just made, choose the main branch, skip any other steps and go all the way to the end.
if there are errors
- double check packages, download in the
.venv
and updaterequirements.txt
- double check spotify developer dashboard and update the redirect uri from local host to the elastic beanstalk url