Ember front end for HospitalRun
To run the app, you will need the following:
- Install ember-cli v0.1.4:
sudo npm install -g ember-cli@0.1.4
- Install bower:
sudo npm install -g bower
- Clone the
frontend
directory!- Command line: git clone git@github.com:CIS-412-Spring-2015/frontend.git
- Go to the
frontend
directory, and run the following:sudo npm install
to install needed node modules.bower install
to install needed bower modules.
- Install/configure couchdb
- Download and install couchdb from http://couchdb.apache.org/#download
- Run
initcouch.sh
to setup couchdb with an admin user with the credentialshradmin/test
.- Go to Futon (
http://0.0.0.0:5984/_utils/
)
- Go to Futon (
- 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'.
- Start the server so you can view the repo in your browser by running
ember serve
from thefrontend
directory. - Go to
http://0.0.0.0:4200/
in a browser and login with your couchdb admin user.
- Install ember-cli v0.1.4:
npm install -g ember-cli
- Install bower:
npm install -g bower
- Clone the
frontend
directory! - 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
)
- Install/configure couchdb
- Download and install couchdb from http://couchdb.apache.org/#download (Make sure use the Windows version or will NOT work)
- Run
initcouch.sh
to setup couchdb with an admin user with the credentialshradmin/test
. - -OR- do the following (I did the or)
- Go to Futon(
http://0.0.0.0:5984/_utils/
orlocalhost: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
- Go to Futon(
- Go into the frontend folder, then into server, then click on config-example.js, check to make sure that the
couch_admin_user
andcouch_admin_password
match your admin credentials, and rename the file toconfig.js
. - Start the server so you can view the repo in your browser by running
ember server
from thefrontend
directory. - Go to
http://0.0.0.0:4200/
orlocalhost:4200/
in a browser and login with your couchdb admin user.