www.haraldoo.no My personal homepage suppose to showcase various projects I have been a part of. Still alot of work to be done, but the bare fundamental have been implemented. My vision is to incrementally update the page so that in the far future my homepage will be cool with many interesting projects.
git clone https://github.com/Haraldlons/simple-firebase-login-chat-project.git
cd simple-firebase-login-chat-project
sudo npm install# Test if you have the environment setup successfully
gulp clean
gulp defaultStart local hosting
gulp watchDevelopment code is in 'development' folder, while generated code by gulp is stored in distribution. When running 'gulp default' files are copied from the development folder into distribution folder. Javascript files are concatenated, and css-file the same. Dependencies in node_modules are also concatonated into a single file, which is named 'script_dependencies'. Therefor the final hosted folder 'distribution' should be a fast.
When running gulp clean, mosts file in the distribution folder is removed.
- Make a new controller by making a new file called "Ctrl.js"
- Copy the entire content of another controller as a template and delete what you don't need and rename what you should
- Make a new html file by putting it in the html folder. The convention is that the filename should be ".html"
- Link the new controller in the app.js. Add a ".state('', {..." section
- Link the new controller in the scripts.json. Commas can easily f**k up stuff
- Start "gulp watch" again