This is the backend server used to make calls to the OpenWeatherMap API as well as the /users and /playlist endpoints for the client.
Wind Chime combines your current weather conditions with a selected genre (or your top artists) to make a custom Spotify playlist that fits the mood of the weather.
Third party APIs used:
Complete the following steps to set up the server:
- Clone this repository to your local machine
git clone https://github.com/erincdustin/spotify-auth-server.git cdinto the cloned repository- Make a fresh start of the git history for this project with
rm -rf .git && git init - Install the node dependencies
npm install - Move the example Environment file to
.envthat will be ignored by git and read by the express servermv example.env .env - Input your environmental variables for your DB and API Key from OpenWeatherMap.
Start the application npm start
Start nodemon for the application npm run dev
Run the tests npm test
- When your new project is ready for deployment, add a new Heroku application with
heroku create. This will make a new git remote called "heroku" - Set producton DB variables in
.env npm run deploywill push to this remote's master branch
Node, Express, SQL