Ember front end for HospitalRun
To run the app (on a mac), you will need the following:
- Install Nodejs nodejs.org
- Install ember-cli v0.1.4:
sudo npm install -g [email protected]
- Install bower:
sudo npm install -g bower
- Clone the
frontend
directory after downloading Github for Mac!- Command line: git clone [email protected]: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.
To run the app (on windows), you will need the following:
- Install Nodejs nodejs.org v0.10.36
- Install git (will automatically download git when link is clicked)
- Install Windows GitHub
- Install ember-cli v0.1.4:
npm install -g ember-cli
- Install bower:
npm install -g bower
- Clone the
frontend
from the GitHub Client - 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
sh initcouch.sh
in the cmd linefrontend
directory to setup couchdb with an admin user with the credentialshradmin/test
.
- 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 (credntialshradmin/test
).
CL means type the line into Terminal
- CL: sudo apt-get install nodejs
- CL: sudo apt-get install npm
- CL: sudo apt-get install git
- CL: sudo apt-get install gitg (Gui client for github)
- CL: sudo npm install -g [email protected]
- CL: sudo npm install -g bower
- CL: git clone git://github.com/CIS-412-Spring-2015/frontend.git
- Move to front end folder in Terminal
- CL: sudo npm install
- Might get some errors (Ignore these let it finish)
- CL: sudo apt-get install nodejs-legacy
- CL: bower install (Don't use sudo)
- CL: sudo apt-get install curl
- CL: sudo apt-get install couchdb
- CL: sh initcouch.sh
- Rename config-example.js to config.js in frontend/server
- CL: git pull
- CL: ember serve
- App should be running on 127.0.0.1:4200
- Might be 0.0.0.0:4200 or localhost:4200