Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

distrochooser/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distrochooser-backend

This repository contains an experimental implementation of the distrochooser.de-backend.

Flaws

It is an experiment. It's slow and I do not know Rust at all.

  • uses unsafe (is a flaw?)
  • no central database connection.. always calling connect_database
  • is kinda slow
  • throws a lot warnings
  • code is not clean
  • no error handling, threads crash hard causing HTTP 500
  • dirty workarounds

Routes

  • /distributions/:lang/
  • /distribution/:id/:lang/
  • /questions/:lang/
  • /i18n/:lang/
  • /newvisitor/
  • /get/:lang/ (combines /distributions /questions /i18n and /newvisitor)
  • /addresult/
  • /getstats/
  • /lastratings/
  • /addrating/@lang

Build

cargo run /path/to/db.conf

Usage

rusty_distrochooser /path/to/db.conf

db.conf: mysql://$username:$password@$host

Releases

No releases published

Packages

No packages published

Languages