search-music
search-music copied to clipboard
Search music by Spotify API
SearchMusic
Search your favorite song by the Spotify API
Prerequisites
All of these must be available in your $PATH
. To verify things are set up properly, you can run this:
node --version
npm --version
git --version
Getting started
Download the repo.
git clone [email protected]:rojasleon/search-music.git
(or download the .zip)
Configuration
Install dependencies
npm install
or
yarn install
Configure your database in mlab
// create a new database
// create a new user
// copy the mongoDB URL
// Example: mongodb://myuser:[email protected]:33875/search-music-prod
// create a new file (dev.js) in ./config
// Use this structure
// module.exports = {
googleClientID: '',
googleClientSecret: '',
mongoURI: '',
cookieKey: ''
};
// Put the url in mongoURI: 'here'
// Your database is ready 🤪.
Configure your app in google
// create a new application
// download your credentials or copy it
// You need the client secret and the client ID
// Copy your data into key.js
// It's already.
Running the app
Server with client:
npm run dev (Recommended)
server:
npm run server
client
npm run client
Author
License
MIT