Giter Site home page Giter Site logo

NRGSIM Application

Development Environment Setup (Linux)

  • Install Git if you don't have it already: sudo apt-get install git
  • Install MongoDB if you don't have it already: sudo apt-get install mongodb-server
  • Install node.js if you don't have it already: sudo apt-get install nodejs (and sudo apt-get install nodejs-legacy on Debian distros)
  • Open a console window and cd to the parent directory of where you want to work on code
  • Clone the git repository: git clone [email protected]:nrgsim/nrgsim.git
  • Move into the project directory: cd nrgsim
  • Install the projects node modules: npm install
  • Start MongoDB: sudo /etc/init.d/mongodb start
  • Run the server app
    • Standalone: node server.js or npm start
    • With nodemon (auto restarts when changes made during development): nodemon [--debug] server.js

Development Environment Setup (Windows)

  • Install Git if you don't have it already: (http://git-scm.com/)
  • Install MongoDB if you don't have it already: (http://docs.mongodb.org)
  • Install node.js if you don't have it already: (http://nodejs.org/)
  • Open a console window and cd to the parent directory of where you want to work on code
  • Clone the git repository: git clone [email protected]:nrgsim/nrgsim.git
  • Move into the project directory: cd nrgsim
  • Install the projects node modules: npm install
  • Start MongoDB: sudo /etc/init.d/mongodb start
  • Run the server app:
    • Standalone: node server.js or npm start
    • With nodemon (auto restarts when changes made during development): nodemon [--debug] server.js

At this point the server application is ready to run but nothing will happen without the client application getting built first. To build the client application, see the readme.md file at public/readme.md. In particular if you want to run this app using this server side code, you need to run lineman dist in order to build the client app so that it can get served by the web server.

Useful global node.js modules

Nodemon - useful for restarting express when something changes: npm install -g nodemon

Testing

Run from command line at root of project: runTests.cmd or npm test
It runs all the tests under the 'tests/' directory. They can be written in JavaScript or CoffeeScript.

Running on production server

The following is how to run the app on the production server. cd /data/app-dev/nrgsim sudo PORT=8000 forever start servers.js &

To stop the app use the following command: sudo forever stop 0

nrgsim's Projects

energyplus icon energyplus

EnergyPlus™ is a whole building energy simulation program that engineers, architects, and researchers use to model both energy consumption and water use in buildings.

energyplus-fortran icon energyplus-fortran

Custom version of energy plus with new hysteresis model developed in part by OSU and in part by NRGSIM Inc.

nrgsim icon nrgsim

solar shoebox nrgsim node.js energy plus

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.