- node.js (http://www.nodejs.org)
- express (http://www.http://expressjs.com)
- http-proxy (https://github.com/nodejitsu/node-http-proxy)
- watch (https://github.com/mikeal/watch)
- r.js (http://www.requirejs.org/docs/optimization.html#download)
- less (http://http://www.lesscss.org)
-
Install node.js
-
Install node dependencies
From the project repository root:
npm install .
-
Run build script
./build.sh
-
Run web server
node server.js
-
Navigate to
localhost:3000
-
Install Heroku Toolbelt (https://toolbelt.heroku.com/)
-
Log into Heroku
heroku login
-
Add your ssh public key to Heroku
heroku keys:add
-
Add Heroku as a remote to your git repository
git remote add heroku git@heroku.com:plex.git
-
Application can be tested locally in a Heroku environment
echo "NODE_ENV=production" > .env
orecho "NODE_ENV=development" > .env
foreman start
-
Navigate to
localhost:5000
-
Deploy application on Heroku
git push heroku master