Pearl Hacks 2016 Web development workshop code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
node_modules
public/stylesheets
routes
views
README.md
app.js
npm-debug.log
package.json

README.md

PearlHacksWebDev2016

Adding a new user:

adduser pearl
adduser pearl sudo

Installing Node.js and build-essential

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install build-essential
sudo npm install -g express
sudo npm install -g express-generator

Create project directory

mkdir projects
cd projects/

Creating Project

express pearlhacks
cd pearlhacks/
npm install <- links everything for the first time
sudo npm install -g twitter <- substitute twitter with any other module you want.
npm link twitter <- You may need to run this if you get module not found errors
npm start <- Starts the server at ipaddress:3000