Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merging PR #427
Browse files Browse the repository at this point in the history
Closes #427, adding Cloud9 as well
  • Loading branch information
tangollama committed May 12, 2016
1 parent 6fc2aa6 commit cf15853
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,25 @@ To install the frontend please do the following:
8. Copy the `server/config-example.js` to `server/config.js` in the folder you cloned the HospitalRun repo.

### Experimental

#### Make
If you are willing to try using `make`, ensure you have installed git, node and couchdb (steps 1, 2 and 6 above), you may skip the rest. This requires couchdb in the path to work correctly.
* Run `make serve`, it will start couchdb, install npm dependencies and start the server.
* Run `make all` to run all tests and build the app.
* Look into `Makefile` to figure other targets available.

#### Cloud 9 Development Environment
[Documented in the project wiki](https://github.com/HospitalRun/hospitalrun-frontend/wiki/Optional:-Cloud9-Development-Environment)

#### Nitrous Quickstart
Create a free development environment for this HospitalRun project in the cloud on [Nitrous.io](https://www.nitrous.io) by clicking the button below.

<a href="https://www.nitrous.io/quickstart">
<img src="https://nitrous-image-icons.s3.amazonaws.com/quickstart.png" alt="Nitrous Quickstart" width=142 height=34>
</a>

In the IDE, start HospitalRun via `Run > Start HospitalRun` and access your site via `Preview > 4200`.

## Start
To start the frontend please do the following:

Expand Down
13 changes: 13 additions & 0 deletions README.nitrous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Setup

Welcome to your HospitalRun project on Nitrous.

## Running the HospitalRun server:

In the [Nitrous IDE](https://community.nitrous.io/docs/ide-overview), start HospitalRun via "Run > Start HospitalRun"

Now you've got a development server running and can see the output in the Nitrous terminal window. You can open up a new shell or utilize [tmux](https://community.nitrous.io/docs/tmux) to open new shells to run other commands.

## Preview the app

In the Nitrous IDE, open the "Preview" menu and click "Port 4200".
10 changes: 10 additions & 0 deletions nitrous.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"template": "ruby",
"ports": [4200],
"name": "HospitalRun",
"description": "Ember front end for HospitalRun",
"scripts": {
"post-create": "sudo apt-get install -y couchdb && echo 'running npm install - this might take awhile...' && npm install -g ember-cli@latest && npm install -g bower && bower install && script/bootstrap && ./script/initcouch.sh && cp server/config-example.js server/config.js",
"Start HospitalRun": "cd ~/code/hospitalrun-frontend && npm start"
}
}

0 comments on commit cf15853

Please sign in to comment.