Skip to content

0. Getting Started

widepend edited this page Apr 19, 2021 · 15 revisions

Front End

Clone the entire repo and navigate to /kotlinRecommender/. Open Android Studio on your computer, open the project and wait for the Gradle build to happen. Towards the top left, select a device emulator to run the app on. Or alternatively use your own Android device by plugging it into your computer via USB and enabling developer mode as well as USB Debugging. Click run (looks like a green play button) next to where the device is shown. Once Android Studio compiles the app, it will open it on the selected device. Follow the instructions to use the app.

Note: The Android Studio project files must be modified to point towards your back-end local server. Change the Server URL in app/res/xml/network_security_config.xml and app/java/edu/umich/error404/kotlinchatter/SongStore.kt to point to your localhost server (ie. http://127.0.0.1:8000/) once you do the back end setup.

Back End

  1. Clone the github repo to the machine that you wish to run the server on.

  2. Open up a new bash terminal with recommender as the current directory (cd error404/recommender)

  3. Initialize a python virtual environment (python3 -m venv env)

  4. Activate your python virtual enviroment (source env/bin/activate)

  5. Install the necessary dependencies listed below (pip install dependency_name)

  6. Run the server (python3 manage.py runserver)

A copy of the server should now be running locally at localhost:8080.

Dependencies

  • spotipy
  • django
  • scipy
  • numpy

Clone this wiki locally