maxkueng / somascrobbler-api

An API tfor real-time SomaFM track metadata
http://api.somascrobbler.com/
MIT License
7 stars 3 forks source link

Update README.md #1

Closed thiatrat closed 10 years ago

maxkueng commented 10 years ago

Hi

you don't have to install npm and the modules separately. You just have to install Node.js

If you're on Ubuntu, you can install the latest version of Node.js from the PPA:

sudo add-apt-repository ppa:chris-lea/node.js  
sudo apt-get update  
sudo apt-get install nodejs

If you don't have apt-add-repository, you can install it like this:

sudo apt-get install python-software-properties

And then go to the "somascrobbler-api" directlry and install the dependencies:

cd path/to/somascrobbler-api
npm install   # this will install all the necessary modules

Then copy and edit the config file:

cp config.dist.json config.json
nano config.json   # or which ever editor you prefer

Then start the program:

npm start
maxkueng commented 10 years ago

I've put up some better instructions.