https://github.com/wezm/quotes
A small web app for quoting friends.
https://github.com/wezm/quotes
rocket rust
Last synced: about 2 months ago
JSON representation
A small web app for quoting friends.
- Host: GitHub
- URL: https://github.com/wezm/quotes
- Owner: wezm
- License: apache-2.0
- Created: 2009-10-28T06:49:41.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T00:51:36.000Z (over 1 year ago)
- Last Synced: 2025-04-08T15:15:11.613Z (about 1 year ago)
- Topics: rocket, rust
- Language: Rust
- Homepage:
- Size: 402 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Quotes
======
[](https://cirrus-ci.com/github/wezm/Quotes)
A small web app for quoting friends.
History
-------
When I was in university in the early 2000s I wrote a PHP app for my group of
friends to be able to log quotes from each other. These aren't so much profound
quotes but humorous ones. The PHP app managed the user profiles and quotes in
a series of text files as a database was not available on the uni server that
hosted it.
In 2009 I imported the data into an SQLite database and built a new UI and
design for it in Ruby using [Sinatra], although this was a read-only version
of the original. That version is still present on [the ruby
branch](https://github.com/wezm/Quotes/tree/ruby)
Twelve years later I rebuilt the app again in [Rust] with [Rocket]. This time I
used the original markup almost verbatim for that genuine early 2000s feel.
Install/Run
-----------
1. Install Rust
2. `cp Rocket.toml.sample Rocket.toml`
### Run
cargo run
### Creating the Initial DB
This is mainly for my own documentation since it imports from the old PHP
app:
cargo run --bin import /path/to/quotes/files quotes.sqlite
Licence
-------
This project is dual licenced under either of:
- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/wezm/Quotes/blob/master/LICENSE-APACHE))
- MIT license ([LICENSE-MIT](https://github.com/wezm/Quotes/blob/master/LICENSE-MIT))
at your option.
[Rust]: https://www.rust-lang.org/
[Rocket]: https://rocket.rs/
[Sinatra]: http://sinatrarb.com/