Log your daily emotions through songs ๐
- Search, playback, and select songs each day that describes your mood
- See which days/songs correlated to more negative/positive emotions and how they were distributed over the month
- Export playlist of tracks each month
This appliction uses:
- TypeScript + React + Redux + MUI + RRD + ESLint + Prettier (from vite-mui-ts boilerplate) for client side code
- Node + Express for server side code
- MongoDB for database management
- Spotify Web API to authenticate user and implement song related features
git clone [email protected]:alenachao/mood-tunes.git
Install Node and npm to manage packages, then install requirements for both client and server.
cd client
npm install
cd ../server
npm install
Install MongoDB and Mongosh, then edit the db.js file to connect to your database.
const connectionString = "your-database-connection-string";
return client.db('your-database-name');
Create app and get client id + client secret as described in Spotify API's getting started guide and set them as environment variables. Make sure to add http://localhost:5173/api/auth/callback as a redirect uri for the created app.
To run application, simply run npm start
in both the client and server folders.