Skip to content

celtson/frontend

 
 

Repository files navigation

frontend

Ember front end for HospitalRun

To run the app, you will need the following:

  1. Install ember-cli v0.1.4: sudo npm install -g ember-cli@0.1.4
  2. Install bower: sudo npm install -g bower
  3. Clone the frontend directory!
    • Command line: git clone git@github.com:CIS-412-Spring-2015/frontend.git
  4. Go to the frontend directory, and run the following:
    • sudo npm install to install needed node modules.
    • bower install to install needed bower modules.
  5. Install/configure couchdb
  6. Download and install couchdb from http://couchdb.apache.org/#download
  7. Run initcouch.sh to setup couchdb with an admin user with the credentials hradmin/test.
    • Go to Futon (http://0.0.0.0:5984/_utils/)
  8. Go into the frontend folder, then into server, then click on config-example.js, check to make sure that the 'couch_admin_user' and 'couch_admin_password' match your admin credentials, and rename the file to 'config.js'.
  9. Start the server so you can view the repo in your browser by running ember serve from the frontend directory.
  10. Go to http://0.0.0.0:4200/ in a browser and login with your couchdb admin user.

WINDOWS version of setting up application:

  1. Install ember-cli v0.1.4: npm install -g ember-cli
  2. Install bower: npm install -g bower
  3. Clone the frontend directory!
  4. Go to the frontend directory in the command line, and run the following:
  • npm install to install needed node modules.
  • bower install to install needed bower modules.
  • (Make sure your directory for the npm folder is in either the system variables or user variables path. most likely: C:\Users\[username]\AppData\Roaming\npm)
  1. Install/configure couchdb
    1. Download and install couchdb from http://couchdb.apache.org/#download (Make sure use the Windows version or will NOT work)
    2. Run initcouch.sh to setup couchdb with an admin user with the credentials hradmin/test.
    3. -OR- do the following (I did the or)
      • Go to Futon(http://0.0.0.0:5984/_utils/ or localhost:5984/_utils/)
      • Look for the "Welcome to Admin Party!" text down in the bottom right and click on "Fix this"
      • Create an admin user via the prompt that is displayed
      • Click on Create Database in the upper left corner
      • Create a database named main
      • Again click on Create Database in the upper left corner
      • Create a database named config
  2. Go into the frontend folder, then into server, then click on config-example.js, check to make sure that the couch_admin_user and couch_admin_password match your admin credentials, and rename the file to config.js.
  3. Start the server so you can view the repo in your browser by running ember server from the frontend directory.
  4. Go to http://0.0.0.0:4200/ or localhost:4200/ in a browser and login with your couchdb admin user.

About

Ember front end for HospitalRun (note: still under 🚧)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.4%
  • CSS 1.6%