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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
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:
npm run start-clean
will start Quasar and MongoDB with a default config and the datasets in the data
directory.npm run start
will start Quasar and MongoDB without resetting the database and config. This will fail unless start-clean
has been run at least once, as required directories will not exist on the first run of start
.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/
.