Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skitol committed Jun 20, 2015
1 parent acd7a98 commit 7ef1b65
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 80 deletions.
57 changes: 42 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
_This documentation is a work in progress. Many parts are incomplete at the moment. Additional documentation is coming very soon._


![alt tag](https://raw.github.com/azimuth1/SARCAT/master/public/icon.png)
![alt tag](https://github.com/Azimuth1/SARCAT/blob/master/meteor/public/icon.png?raw=true)

#SARCAT
Search and Rescue Collection & Analysis Tool (SARCAT) is a web-hosted application that simplifies the collection and analysis of your team’s or agencies SAR data. Its goal is simple; make the collection of data easy, accurate, and standardized. This is accomplished with smartforms, auto-calculations, and an intuitive user inter-
Expand All @@ -24,40 +24,67 @@ face. The user then reaps the benefits with built in data analysis, reporting, m

* _Can be hosted on your Linux/Unix or Microsoft server. Option for hosted version as well. Fully scalable for small or large teams._

***
##Officially supported platforms

## Download Latest Release
_*Coming Soon - Easily download the latest release for your platform.*_
Currently, SARCAT is officially supported on the following platforms:

* Mac: OS X 10.7 and above
* Windows: Microsoft Windows 7, Windows 8.1, Windows Server 2008, Windows Server 2012
* Linux: x86 and x86_64 systems

## Install From Source:
***

* Install [Node.js v0.10.x](https://nodejs.org/download/)
* Install [Meteor](http://docs.meteor.com/#/basic/quickstart)
git clone https://github.com/Azimuth1/SARCAT.git
* Install [MongoDB](https://www.mongodb.org/)

_*Coming Soon - Easily download the latest release, with all dependencies for your platform.*_

Download Latest From Repo:
# Install From Source:

# 1. Install [Node.js](https://nodejs.org) v0.10.6<br>
SARCAT is built with Meteor - which makes it fast and reliable. Meteor has been tested up to [node](https://nodejs.org/) version 0.10.36

*For Easy download, Just click the link and follow install instructions for your platform.*
* Windows: [node.exe](http://nodejs.org/dist/v0.10.36/node.exe)
* Mac: [node-v0.10.36.pkg](http://nodejs.org/dist/v0.10.36/node-v0.10.36.pkg)
* Linux: [node-v0.10.36-linux-x64.tar.gz](http://nodejs.org/dist/v0.10.36/node-v0.10.36-linux-x64.tar.gz)


## 2. Install [MongoDB](https://www.mongodb.org/)
Mongo is the powerful database behind SARCAT. Follow the isntructions to get up and running with mongo!<br>

* [Windows](http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/)
* [Mac](http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/)
* [Linux](http://docs.mongodb.org/manual/administration/install-on-linux/)



## 3. Open Your Shell<br>
* For Windows, click ```start```>```run``` and type ```cmd```<br>
* For Mac, search "Terminal" to open.<br>


## Download SARCAT


_* Quick download will soon be provided from the website._
```bash
$ git clone https://github.com/Azimuth1/SARCAT.git
```


Install dependencies:
```bash
$ cd SARCAT
$ npm install
```

Run as a Meteor app:
```bash
$ meteor --settings settings.json
$ npm test
```

Or run as a node app:
```bash
$ meteor build --directory /build
$ (cd ../build/bundle/programs/server && npm install)
$ MONGO_URL=mongodb://127.0.0.1:27017 ROOT_URL=http://localhost.com PORT=3000 METEOR_SETTINGS=$(cat settings.json) node ../build/bundle/main.js
$ npm start
```

## Hosted Options
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var startSARCAT = spawn('node', [file], {
env: env
});


/*
startDB.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});
Expand All @@ -94,7 +94,7 @@ startDB.stderr.on('data', function (data) {
startDB.on('close', function (code) {
console.log('child process exited with code ' + code);
});

*/

startSARCAT.stdout.on('data', function (data) {
console.log('stdout: ' + data);
Expand Down
80 changes: 26 additions & 54 deletions meteor/mup.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,27 @@
{
// Server authentication info
"servers": [
{
"host": "hostname",
"username": "root",
"password": "password"
// or pem file (ssh based authentication)
// WARNING: Keys protected by a passphrase are not supported
//"pem": "~/.ssh/id_rsa"
// Also, for non-standard ssh port use this
//"sshOptions": { "port" : 49154 },
// server specific environment variables
"env": {}
}
],

// Install MongoDB on the server. Does not destroy the local MongoDB on future setups
"setupMongo": true,

// WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
"setupNode": true,

// WARNING: nodeVersion defaults to 0.10.36 if omitted. Do not use v, just the version number.
"nodeVersion": "0.10.36",

// Install PhantomJS on the server
"setupPhantom": true,

// Show a progress bar during the upload of the bundle to the server.
// Might cause an error in some rare cases if set to true, for instance in Shippable CI
"enableUploadProgressBar": true,

// Application name (no spaces).
"appName": "meteor",

// Location of app (local directory). This can reference '~' as the users home directory.
// i.e., "app": "~/Meteor/my-app",
// This is the same as the line below.
"app": "/Users/arunoda/Meteor/my-app",

// Configure environment
// ROOT_URL must be set to https://YOURDOMAIN.com when using the spiderable package & force SSL
// your NGINX proxy or Cloudflare. When using just Meteor on SSL without spiderable this is not necessary
"env": {
"PORT": 80,
"ROOT_URL": "http://myapp.com",
"MONGO_URL": "mongodb://arunoda:[email protected]:10023/MyApp",
"MAIL_URL": "smtp://postmaster%40myapp.mailgun.org:[email protected]:587/"
},

// Meteor Up checks if the app comes online just after the deployment.
// Before mup checks that, it will wait for the number of seconds configured below.
"deployCheckWaitTime": 15
}
"servers": [{
"host": "spa.tial.ly",
"username": "kyle",
"password": "lemonade"
}],

"setupMongo": true,

"setupNode": false,

"nodeVersion": "0.10.36",

"setupPhantom": false,

"appName": "meteor",

"app": "/Users/KyleK/github/SARCAT/meteor",

"env": {
"MONGO_URL": "mongodb://localhost:27017",
"ROOT_URL": "http://localhost.com",
"PORT": 3000
},

"deployCheckWaitTime": 15
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@
"description": "SAR data management tool",
"author": "Azimuth1",
"engines": {
"node": ">=0.10.36"
"node": "~0.10.36"
},
"repository": {
"type": "git",
"url": "git://github.com/Azimuth1/SARCAT.git"
},
"bin": {
"sarcats": "./bin/sarcats",
"jshint": "./libs/jshint"
"mongod": "dist/.bin/mongodb"
},
"main": "./main.js",
"scripts": {
"test": "cd meteor && meteor --settings settings.json",
"preinstall": "",
"preinstall": "(cd dist/bundle/programs/server && npm install)",
"start": "node main.js dist/bundle/main.js",
"postinstall": "",
"build": "node scripts/run.js scripts/build.sh",
"mrt-run": "./scripts/run-mrt.sh"
"mrt-run": "./scripts/run-mrt.sh",
"g":"./dist/g.sh"
},
"bugs": {
"url": "https://github.com/Azimuth1/SARCAT/issues"
Expand All @@ -32,9 +33,11 @@
],
"license": "MIT",
"dependencies": {
"fibers": "^1.0.5",
"minimist": "^1.1.1",
"mongodb": "^2.0.34"
},
"preferGlobal": true,
"private": true
}

24 changes: 19 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,30 @@ echo "resetting meteor"
meteor reset
echo "building meteor for node"
meteor build --directory $cwd/dist





cd "$cwd"

echo "copying settings.json to /dist"
cp settings.json ../dist
cp meteor/settings.json dist






echo "install node dependencies"
(cd ../dist/bundle/programs/server && npm install)
echo "creating mongodb"
mkdir ../dist/sarcatdb
#tar -zxvf pkg/mongodb-osx-x86_64-3.0.4.tgz
#mkdir -p dist/mongodb
#cp -R -n mongodb-osx-x86_64-3.0.4/bin/. dist/mongodb
#rm -rf mongodb-osx-x86_64-3.0.4
mkdir dist/sarcatdb



cd "$cwd"



Expand Down

0 comments on commit 7ef1b65

Please sign in to comment.