Code Monkey home page Code Monkey logo

energy-explorer's Introduction

Community Energy Explorer

Note: some of this information may be outdated.

!! master is NOT up to date, the most recent website is on the redesign branch

Community Energy Explorer (old website) - http://latest.energyexplorer.ca/ Community Energy Explorer (new temp. website) - https://communityenergyexplorer.herokuapp.com/

Technologies Used:

How do I get set up?

  • Install NodeJS - https://nodejs.org/en/
  • Install Ruby - http://www.ruby-lang.org/en/documentation/installation/
  • Install Compass and read documentation - http://compass-style.org/install/
  • Before making changes to the styles, browse to /assets/styles/cee, open command window in the root folder of styles, run the following command: compass watch
  • Other alternative to making changes to the styles is to double-click on the file "compass-watch.bat"
  • Run npm install in the command line if you do not see a node_modules folder with all the modules installed. This has to be done at the folder level where app.js exists.
  • To run the web application, open command window in the root folder of the website and execute the following command: node app.js
  • View the app on localhost:5000 in your web browser.

File Structure

  • .vscode (not required unless running node via Visual Studio Code)
  • --/ launch.json
  • assets (JavaScript/CSS/Images)
  • --/ bootstrap (twitter bootstrap files)
  • --/ images
  • --/ js (all other javasript files)
  • --/ styles (all other stylesheets)
  • --/ .sass-cache (used by Compass framework)
    
  • --/ cee (folder initialized by compass to store all stylesheets)
  • --/--/ sass (this is where you write your styles. Compass converts it to css)
  • --/--/ css (all the converted css files. This is what you add to the tag in HTML)
  • --/--/ compass-watch.bat (run this file before making changes to styles. This watches the changes in scss folder and converts it to css)
    
  • --/--/ config.rb (configuration file for compass. Do not make changes without understanding the docmentation on Compass website)
    
  • node_modules (Folder where all node modules are installed. Run npm install in the command prompt if you don't see this folder.)
  • routes (Contains routing files. Learn more here: https://expressjs.com/en/guide/routing.html)
  • --/ main.js (Contains all primary routes/urls for the website)
    
  • views (Contains all html files - coded using swig templating - https://github.com/paularmstrong/swig )
  • --/ Components (also contains html file but only resuable components such as navbars, footers, etc)
    
  • --/ caseStudies (Contains all HTML pages for each case study.)
    
  • --/ renewableEnergySupplyModals (Contains all HTML partials for Bootstrap modals (View Bootstrap website to know how modals work). Used in renewableEnergySupply.html)
    
  • --/ energyDemandModals (Contains all HTML partials for Bootstrap modals (View Bootstrap website to know how modals work). Used in energyDemandEfficiency.html)
    
  • .gitignore (list of folders to ignore when pushing changes to repositories using GIT)
  • app.js (Main entry file to start a node server)
  • package.json (Created by node to save configurations and list of packages installed)
  • README.md (Documentation for the project)

Who do I talk to?

  • Dawood Al-Masslawi
  • Jon Salter
  • Utkarsh Saxena

energy-explorer's People

Contributors

dawood-dev avatar dimmest avatar ilovefroyos avatar joeyklee avatar terangg avatar utkarshsaxena avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.