/lab0

Primary LanguageJavaScriptMIT LicenseMIT

UNSW CSESoc Lab 0 2020


UNSW CSESoc Logo Original repo


Features

The admin can create/edit categories. All questions and submissions must be associated with a category.

The admin can create/edit questions. Users can submit an answer for a question. There can only be one correct answer for a question. It is not case sensitive.

Solved questions appear green to users. They also receive points for each question they solve.

The admin can view a user's username, points and solves. They can also delete a user.

Users can be viewed sorted by:

  • Username (Descending)
  • Username (Ascending)
  • Points (Descending)
  • Points (Ascending)
  • Solves (Descending)
  • Solves (Ascending)

Installation

A requirements.txt file is located in the server folder
python3 -m pip install -r requirements.txt

Environment variables:

  • admin_username
  • admin_password
  • secret_cookie

Configuration File

When the server first runs, a settings.ini file will be automatically created from the settings.example.ini skeleton.

[SERVER]
port = 6969
database = data.sqlite3

[SITE]
templatesDir = ../site
staticDir = ../site

Credits

This project was originally created by Andrew Wong for the CSESoc Compclub 2019 Summer CTF.

It has been modified by Michael Gribben for CSESoc's Lab 0.

Server (Python)

Jinja2 - Version 2.10.1
tornado - Version 5.1.1

Website

bulma.css - Version 0.7.2
Bulma-extensions
normalize.css - Version 8.0.1
three.js - Version 98

Font Awesome
Hack - Version 3.3.0

Snippets / Resources

glitch - sketch of three.js by yoichi kobayashi
Jinja2 Rendering stub for Tornado by Bibhas Debnath
Dotted World Map by sNowFleikuN
CSS Scanlines by meduzen


License

This software is licensed under the MIT License.
You are free to redistribute it and/or modify it under the terms of the license.