Skip to content

Commit

Permalink
Merge pull request #70 from nzzdev/release-1.8.0
Browse files Browse the repository at this point in the history
Release 1.8.0
  • Loading branch information
manuelroth committed Aug 13, 2018
2 parents 0d542cb + 8ece3f7 commit 420f508
Show file tree
Hide file tree
Showing 57 changed files with 1,893 additions and 1,506 deletions.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,32 @@

**Maintainer**: [manuelroth](https://github.com/manuelroth)

Q quiz is one tool of the Q toolbox to render quizzes containing questions of type multiple choice, number guess and map point guess. It also includes the rendering of answer statistics for each question type.
Q Quiz is one tool of the Q toolbox to render quizzes containing questions of type multiple choice, number guess and map point guess. It also includes the rendering of answer statistics for each question type.

## Installation

```bash
$ npm install
$ npm run build
```

## Development

Install the [Q cli](https://github.com/nzzdev/Q-cli) and start the Q dev server:

```
$ Q server
```

Run the Q tool:
```
$ node index.js
```

## Implementation details
The tool structure follows the general structure of each Q tool. Further information can be found in [Q server documentation - Developing tools](https://nzzdev.github.io/Q-server/developing-tools.html).

## License
Copyright (c) 2018 Neue Zürcher Zeitung. All rights reserved.

This software is published under the MIT license.
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
const server = require('./server.js');
const plugins = require('./server-plugins.js');
const routes = require('./routes/routes.js')
const server = require("./server.js");
const plugins = require("./server-plugins.js");
const routes = require("./routes/routes.js");

const start = async function() {

await server.register(plugins);

server.route(routes);

await server.start();
console.log('Server running at: ' + server.info.uri);
}
console.log(`Server running at: ${server.info.uri}`);
};

start();
22 changes: 9 additions & 13 deletions jspm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,31 @@ SystemJS.config({
"github:": "jspm_packages/github/"
},
browserConfig: {
"baseURL": "/"
baseURL: "/"
},
devConfig: {
"map": {
"plugin-babel": "npm:[email protected].21"
map: {
"plugin-babel": "npm:[email protected].25"
}
},
transpiler: "plugin-babel",
packages: {
"q-quiz": {
"main": "q-quiz.js",
"meta": {
main: "q-quiz.js",
meta: {
"*.js": {
"loader": "plugin-babel"
loader: "plugin-babel"
}
}
}
}
});

SystemJS.config({
packageConfigPaths: [
"npm:@*/*.json",
"npm:*.json",
"github:*/*.json"
],
packageConfigPaths: ["npm:@*/*.json", "npm:*.json", "github:*/*.json"],
map: {
"leaflet": "github:Leaflet/Leaflet@1.0.3",
"text": "github:systemjs/[email protected].9"
leaflet: "github:Leaflet/Leaflet@1.3.3",
text: "github:systemjs/[email protected].11"
},
packages: {}
});
Loading

0 comments on commit 420f508

Please sign in to comment.