https://github.com/aligusnet/quiz
Trivial implementation of quiz tool
https://github.com/aligusnet/quiz
elm-lang serverless
Last synced: about 1 year ago
JSON representation
Trivial implementation of quiz tool
- Host: GitHub
- URL: https://github.com/aligusnet/quiz
- Owner: aligusnet
- License: bsd-3-clause
- Created: 2017-05-09T21:16:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-18T22:11:27.000Z (almost 9 years ago)
- Last Synced: 2025-01-20T09:09:24.007Z (about 1 year ago)
- Topics: elm-lang, serverless
- Language: Elm
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quiz
A simple serverless web application written on [Elm](http://elm-lang.org/).
This is trivial implementation of quiz tool. All tests are defined in `public/data/tests.json` file.
The running appliucation is available at: https://quiz.aligus.net/
## Project structure
* public
* * assets
* * data
* src
`public` folder contains all files needed to run the application: html, CSS and JavaScript files.
`src` folder has Elm source code. The source code compiles to `public/assets/js/elm.js` file.
## Build and run app
To build the application simply execute:
```bash
make
```
It will build the application (precisely speaking it will generate a JavaScript file) and start web server. You can access quiz app by http://localhost:8000/public/index.html
To compress the generated JavaScript file and can use [UglifyJS](https://github.com/mishoo/UglifyJS).
You might need to install node.js if you still do not have it: https://nodejs.org/en/download/.
```bash
npm install uglify-js -g # Install UglifyJS
make compress # Compress the JS file
```