Go to file
R Tyler Croy f6c12316f1 Ensure that the Cargo.lock is used when compiling releases
Was seeing failures on deployment because there are newer crates which don't
compile out of the box
2020-10-20 10:49:16 -07:00
.github/workflows Copypasta mistake 2020-10-11 15:27:46 -07:00
apidocs Tweaking the API description a bit, still not quite right 2020-10-11 16:03:47 -07:00
migrations Pre-seed the development database with a single amazing record 2020-10-11 16:03:07 -07:00
scripts Add script to convert the YAML for the apidocs/ 2020-09-20 20:57:32 -07:00
seeds Pre-seed the development database with a single amazing record 2020-10-11 16:03:07 -07:00
src Allow CORS in production for yew app 2020-10-19 23:24:51 -04:00
static Make the other pages look a little lighter than the main page 2020-10-07 20:10:02 -07:00
views Add a dockerfile which may or may not work 2020-10-11 11:27:48 -07:00
.dockerignore Add a dockerfile which may or may not work 2020-10-11 11:27:48 -07:00
.gitignore Actually build properly within docker >_< 2020-10-11 12:14:20 -07:00
Cargo.lock Add some nice apache-style logs in release mode 2020-10-11 15:05:53 -07:00
Cargo.toml Add some nice apache-style logs in release mode 2020-10-11 15:05:53 -07:00
Dockerfile Ensure that the Cargo.lock is used when compiling releases 2020-10-20 10:49:16 -07:00
LICENSE.txt Add a skeleton of an app using tide/diesel 2020-09-14 18:30:59 -07:00
README.adoc Cleanup the readme a teensy bit 2020-10-11 15:11:09 -07:00
api-description.yml Tweaking the API description a bit, still not quite right 2020-10-11 16:03:47 -07:00
diesel.toml Add a skeleton of an app using tide/diesel 2020-09-14 18:30:59 -07:00
docker-compose.yml Pre-seed the development database with a single amazing record 2020-10-11 16:03:07 -07:00
dredd.yml Add an OpenAPI description and some overrides for debug builds to test locally 2020-09-20 20:29:48 -07:00
sqlx-data.json Add the sqlx JSON file for offline building in Docker 2020-10-11 11:45:53 -07:00

README.adoc

<html lang="en"> <head> </head>

Dot dot Vote!

This is a simple web application for Dot-voting.

The goal is to create a simple and anonymous dot-voting system which allows people to create quick polls to run with their teams.

Hacking

Since this is a Rust project, Rust and Cargo are both required in order to build and test.

  • RUST_LOG=info cargo run will build and run the application locally. After which localhost:8000 will have the application up and running.

  • cargo test will run the tests, of which there are very few at the moment!

The application is built with Tide for the web tier and sqlx for the database tier.

The views are all very simple HTML and a little bit of JavaScript written with Handlebars

In order to experiment with the API, execute cargo run and then access localhost:8000/apidocs/index.html

</html>