DiscoGS API client for node JS
Clone this repository and cd
into it in a terminal window.
-
Install
nvm
-
Install
nvm install v9.8.0
-
Check node version
node -v
-
npm install
-
Install MongoDB
brew install [email protected]
-
Create the directory where the data will be stored
mkdir -p data/db
-
Run mongoDB deamon
npm run-script mongo
-
Install
Robo3T
-
Connect to http://localhost:27017
-
Create an account https://www.discogs.com and create a token
-
Add the token in the env variables to be used in the node app
export DISCOGS_TOKEN="YOUR_PRIVATE_TOKEN"
-
Confirm that has been added correctly
printenv | grep DISCOGS_TOKEN
-
To populate the database with the discogs artists:
npm start
- Run load testing
npm test
(Take several minutes to finish)