Skip to content

Commit

Permalink
Set up development environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbgn committed Sep 9, 2022
1 parent 9591dbe commit 4ae9cf8
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules/
dist/
.parcel-cache/
build/
run/

Expand Down
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# gis-question-formulator

This repository, right now, contains two projects that contain some
overlap:

1. A `blockly` interface in JavaScript to allow the user to construct a
question in constrained natural language.
2. A natural language parser, using machine learning and ANTLR, that
identifies functional roles from a question, and produces the
underlying transformation graph.

The first of these is at the root of the repository. The second is in
the [`parser_module/`](parser_module/) subdirectory. We are working
towards unifying this functionality; see [issue
#1](https://github.com/quangis/geo-question-parser/issues/1) for
details.


## Installation

First, you will need to install [NPM][npm]. Do so via your method of
choice; note that it is available on [`conda-forge`][conda-nodejs].
After that, install the environment:

npm install

To have [Parcel][parcel] run a test server at `http://localhost:1234`,
do:

npm run start


[npm]: https://www.npmjs.com/
[parcel]: https://parceljs.org/
[conda-nodejs]: https://anaconda.org/conda-forge/nodejs
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "gis-question-formulator",
"version": "0.0.0",
"description": "The question formulator for GIS questions in the QuAnGIS project. It ships a user interface based on Blockly.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "parcel public/index.html",
"build": "parcel build public/index.html"
},
"repository": {
"type": "git",
"url": "git+https://github.com/quangis/gis-question-formulator.git"
},
"keywords": [
"GIS",
"blockly",
"core",
"concepts",
"geographical",
"information",
"geo-analytical",
"question",
"answering"
],
"author": "Haiqi Xu, Niels Steenbergen, Enkhbold Nyamsuren, Simon Scheider, Eric Top",
"license": "GPL-2.0-or-later",
"bugs": {
"url": "https://github.com/quangis/gis-question-formulator/issues"
},
"homepage": "https://github.com/quangis/gis-question-formulator#readme",
"dependencies": {
"blockly": "^8.0.5"
},
"devDependencies": {
"parcel": "next",
"parcel-reporter-static-files-copy": "^1.3"
},
"staticFiles": {
"staticPath": "node_modules/blockly/media",
"staticOutPath": "media"
}
}
4 changes: 2 additions & 2 deletions index.html → public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
font-size: 25px;
}
</style>
<script src="blocks.js"></script>
<script src="generator.js"></script>
<script src="../src/blocks.js"></script>
<script src="../src/generator.js"></script>
<link rel="shortcut icon" href="#" />
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4ae9cf8

Please sign in to comment.