UnMusic - Productivity music for Developers
Productivity music for Developers
Prerequisite
Sign up for the following services and grab the API keys:
- Contentful – CMS for managing the contents of the app (20000 Records & 2,000,000 API Calls/month in free tier)
- Cloudinary – Content Delivery service for hosting audio files for streaming (25 GB/month in free tier)
- Amplitude – App usage analytics (Optional)
- Sentry – Error monitoring in production (Optional)
Contentful Model Creation
-
Create two models in the Contentful dashboard named
PlaylistandTrack. -
Playlistmodel for saving the list of tracks, which will contain the following fields: -
Trackmodel for saving the track information, which will contain the following fields:
Cloudinary Assets Hosting
-
Login into your Cloudinary account and create folder and upload all of your MP3 files
-
Copy the public URL for each file by clicking on the
Copy URLbutton
Installation
-
Clone the repository by running
git clone git@github.com:unmusic/unmusic.github.io.git -
Get inside the
/webfolder -
Add a file named
.env.localand replace it with contents of.env.sample -
Make sure you update all the environment variables below:
REACT_APP_CONTENTFUL_SPACE_IDREACT_APP_CONTENTFUL_ACCESS_TOKENREACT_APP_AMPLITUDE_API_KEY(Optional)REACT_APP_SENTRY_DSN(Optional)
-
Install all the dependencies by running
npm install -
Run
npm startto start the application in the development mode. The app will be running at http://localhost:3000.