-
Notifications
You must be signed in to change notification settings - Fork 4
Installing NodeJS, Foundation, and Firebase
Franz Noel edited this page Dec 19, 2015
·
6 revisions
This is a tutorial how to install NodeJS, Foundation, and Firebase.
Make sure to install NodeJS in your computer. Then, run:
sudo npm install npm -g
Set the following directory to your ownership by running sudo chown -R owner.name <directory>:
- /usr/local/lib/node_modules/
- /usr/local/bin/
- /usr/local/share/
Then, follow these steps:
- Create a directory using the command
mkdir ~/npm-global - Configure npm to set the directory using the following command
npm config set prefix ~/npm-global/ - Create a file named
~/.profileand add the pathexport PATH=~/npm-global/bin:$PATH - Type
resetin the terminal
Follow these steps:
- Install Foundation command line in npm using
npm install -g foundation-cli - Go to
~/Githubdirectory (or the directory for your projects) and runfoundation new. - Choose "A site" as the installation
- Enter your site name and choose ZURB Template
- Change directory
~/Github/your-web-site
Follow these steps:
- Install firebase command line using
npm install -g firebase-tools - Run
firebase initand enteryour-web-sitename. - Run
npm start, and it will populate thedistfolder with your site. - Choose
distas your main directory for Firebase. - Install a local server using
npm install -g serve. - Run
serve distto indicate that you're referring to the Foundation compiled site. - Try to access Firebase in your localhost. For example,
localhost:3000.
- Run
firebase deploy - Run
firebase opento open your site automatically.