Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wezm/quotes
A small web app for quoting friends.
https://github.com/wezm/quotes
rocket rust
Last synced: 20 days 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 (about 15 years ago)
- Default Branch: master
- Last Pushed: 2024-04-07T23:31:21.000Z (9 months ago)
- Last Synced: 2024-11-05T00:23:08.609Z (2 months ago)
- Topics: rocket, rust
- Language: Rust
- Homepage:
- Size: 365 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Quotes
======[![Build Status](https://api.cirrus-ci.com/github/wezm/Quotes.svg)](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/