Never lose a playlist again. A simple site that automatically archives new music tuesday playlist before it refreshes. This website was specially designed to replace a running Spotify form.
This is not an official Spotify application. I am a developer, Spotify user, and here is my solution.
Make sure you have installed all these prerequisites on your development machine.
- Node.js - Download & Install Node.js and the npm package manager, if you encounter any problems, you can also use this GitHub Gist to install Node.js.
- MongoDB - Download & Install MongoDB, and make sure it's running on the default port (27017).
- Angular CLI - You're going to use the Angular CLI to manage your front-end packages, in order to install it make sure you've installed Node.js and npm, then install the cli globally using npm:
$ npm install -g @angular/cli
To install Node.js dependencies you're going to use npm again, in the application folder run this in the command-line:
$ npm install
This command does a few things:
- First it will install the dependencies needed for the application to run.
- If you're running in a development environment, it will then also install development dependencies needed for testing and running your application.
Before you can start up the application, you need to spin up the local MongoDB
./mongod --dbpath ~/data/db/
To start the Express server containing the API run the start script. This will start the Express server on port 3000 by default
$ npm start
The start a development Angular server, use the Angular CLI. By default, this will run on port 4200 and create a reverse proxy to the API running on port 3000.
$ ng serve
In your browser just go to http://localhost:4200
That's it! your application should be running by now, to proceed with your development check the other sections in this documentation. If you encounter any problem try the Troubleshooting section.
First, build the angular client. This will output to the dist/
directory.
$ ng build --prod
Then start up the Express server. The express server will serve everything in the dist/
directory as static files.
$ npm start
The complete server should now be running.
- The original Spotify form
- Create a new issue if you want additional features or playlists added
- Tweet me @SpotifyUnchnd
(MIT)