Shoperations is a node.js + Express app used to manage the Carbonmade store (backend).
This sequence of commands will install the latest versions of node, npm, and express:
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.profile
. ~/.profile
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-v0.3.6.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl -# http://npmjs.org/install.sh | sudo sh
curl -# http://expressjs.com/install.sh | sudo sh
(Adapted from this gist)
Verify the installation worked with node -v && npm -v && express -v
-- you should see output similar to this:
v0.3.3
0.2.14-2
2.0.0-pre
Shoperations makes use of the following Node modules:
NPM modules can be installed with:
npm install jade less
Restler is not in the npm repo, so you need to clone from github and manually install:
git clone https://github.com/danwrong/restler.git
cd restler
npm install .
git clone git@github.com:Carbonmade/Shoperations.git
cd Shoperations
node dev.js
You should now be able to view Shoperations at http://localhost:3000
Note that node dev.js
should only be used for local development. Using dev.js
allows for auto-reloading of Node/Express when JS files change. To run in production, node app.js
.