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

Commit

Permalink
Merge pull request #371 from HospitalRun/script-bootstrap
Browse files Browse the repository at this point in the history
Add a bootstrap script
  • Loading branch information
Joel Glovier committed Mar 17, 2016
2 parents d06a457 + 52f5366 commit 45dd7da
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem 'scss_lint'
17 changes: 17 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GEM
remote: https://rubygems.org/
specs:
rake (10.5.0)
sass (3.4.21)
scss_lint (0.47.1)
rake (>= 0.9, < 11)
sass (~> 3.4.15)

PLATFORMS
ruby

DEPENDENCIES
scss_lint

BUNDLED WITH
1.11.2
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ To install the frontend please do the following:
3. Install [ember-cli latest](https://www.npmjs.org/package/ember-cli): `npm install -g ember-cli@latest`.
Depending on your [npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) you might need root access to install ember-cli.
4. Install [bower](https://www.npmjs.org/package/bower): `npm install -g bower`
5. Clone this repo with `git clone https://github.com/HospitalRun/hospitalrun-frontend`, go to the cloned folder and:
1. `npm install` to install needed node modules.
2. `bower install` to install needed bower modules.
3. `npm install -g phantomjs-prebuilt` to install PhantomJS2, which is needed to run tests.
Depending on your [npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) you might need root access to install PhantomJS2.
5. Clone this repo with `git clone https://github.com/HospitalRun/hospitalrun-frontend`, go to the cloned folder and run `script/bootstrap`. (*Note: Depending on your [npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) you might need root access to install PhantomJS2; also, Windows users must run with [Cygwin](http://cygwin.org/)*)
6. Install and configure [CouchDB](http://couchdb.apache.org/)
1. Download and install CouchDB from http://couchdb.apache.org/#download
2. Create admin user:
Expand Down Expand Up @@ -97,4 +93,3 @@ Contributions are welcome via pull requests and issues. Please see our [contrib
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)

25 changes: 25 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh
# Usage: script/bootstrap
# Ensures all dependencies are installed locally.

set -e

cd "$(dirname "$0")/.."

git pull

if [ -f "package.json" ]; then
echo "==> Installing packages…"
npm install
npm install -g phantomjs-prebuilt
fi

if [ -f "bower.json"]; then
echo "==> Installing bower components…"
bower install
fi

if [ -f "Gemfile" ]; then
echo "==> Installing gem dependencies…"
bundle install
fi

0 comments on commit 45dd7da

Please # to comment.