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

Add a bootstrap script #371

Merged
merged 7 commits into from
Mar 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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