slamdata/quasar-test-starter

Name: quasar-test-starter

Owner: SlamData, Inc.

Description: null

Created: 2016-04-25 21:09:04.0

Updated: 2018-05-11 11:33:41.0

Pushed: 2018-01-24 12:23:07.0

Homepage: null

Size: 3467

Language: PureScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

quasar-test-starter

A project that makes it easy to start MongoDB and Quasar while testing SlamData or the Quasar API.

Can be used as a library in other projects via the modules in Quasar.Spawn, or on the command line through npm scripts.

Command line usage

First clone this project with git:

clone https://github.com/slamdata/quasar-test-starter.git

Ensure you have bower installed:

install -g bower

And then cd into quasar-test-starter and run npm install. This will will compile the PureScript code in the project to produce quasar/spawn.js and download a .jar file for Quasar.

Once these setup steps have been completed, the following commands can be used within the quasar-test-starter directory:

Hosting the SlamData front-end

When run as an executable, the content path slamdata is passed through as an option to Quasar, so making a symlink in the directory of this project to the public/ folder in a SlamData project will enable testing of the front-end, hosted by the Quasar instance.

The following terminal command can be run to symlink the folder:

s /path/to/slamdata/public/ /path/to/quasar-test-starter/slamdata/

or on Windows Powershell:

nk /path/to/quasar-test-starter/slamdata/ /path/to/slamdata/public/

Notice that you will symlink public/ from slamdata and rename it to slamdata/ inside quasar-test-starter/.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.