dependecy: Remove future No longer required, so cleaning it up right now.
Dependencies
- [2]
Z63HIZPStesting: Move tests to specific directory Tests I didn't really write until today, as I mostly didn't really know how to set it up. This is now partially mitigated, just by forcing myself to do it. There's a few problems still in the code; the database is shared with the dev application for instance. Though as a start I'll take it. - [3]
TWIZ7QV4db: Add interface to add a project Right now a project has a name, and an owner which is hardcoded to 1. This is because basically I'm speedrunning to implement push/pull of Pijul and then revisit to add depth to features and tests. Model code is now split into files properly too. - [4]
W3M3C7CCInitial commit This change includes a very small hello world application server written in Rust using Rocket.rs. Managing dependencies is done with Nix as that works well between Linux and Mac for me. - [5]
FS2NWBVNpijul: Start of push/pull work This change includes one API endpoint, .pijul. It allows for getting a channels remote ID. A lot of plumbing around repositories is added too, from init to opening pristine and actions like it. - [6]
3E77DEMDroutes: Move root route to controllers module The routes were now in modules in the root, which created a messy situation for the future. For now the routes will be moved to the controllers module and later additional changes will be done to further clean this up. - [7]
KFVJ3KMWfrontend: Introduce navigation bar Minor changes to the front-end mostly, to allow users to register, sign in, and sign out. The sign out route is changed to a GET endpoint, as links in HTML cannot DELETE. - [8]
K4JNAJOFdatabase: Connect to postgres on Rocket boot As database I've chosen PostgreSQL, as my personal experience has been good with it. This change allows Rocket to connect to the database on booting the server. It depends on the DATABASE_URL being set, and for now circumvents the Rocket config helpers as it seemed faster to be up and running this way. - [9]
5UNA2DEAroutes: Register and authenticate users Allow users to sign up, and sign in/sign out. The routes are added, though the design of the pages is very bare bones still, it's hard to go through the full flow to demo. On the server side: Passwords are stored encrypted in the database with salts. This uses the PG encrypt tooling to prevent against bugs and maintainance costs on this project. When a user is signed in, the user ID is set in a private cookie. Rocket has Guards for routes, which has not been implemented yet for this project. - [10]
WSHUT37Cpijul: Pushes now work completely While still missing authn and authz, the flow of pushing now works. This enables validation of at least storing data. Later changes will show the data on the project page. - [11]
E4OBIIUBtemplates: Fix navigation mocks Cleans up the directory structure for templates and fixes the navigation bugs in the applications too. Includes a context! macro which is lifted from upstream, but is currently unreleased. When rocket_dyn_templates is updates, it could be DRY'ed out.
Change contents
- replacement in tests/controller_test.rs at line 6
let client = Client::tracked(nidobyte::rocket().await).await.expect("foo");let client = Client::tracked(nidobyte::rocket()).await.expect("foo"); - edit in src/main.rs at line 1
use futures::executor::block_on; - replacement in src/main.rs at line 3[3.3780]→[2.524:563](∅→∅),[2.563]→[3.388:390](∅→∅),[3.882]→[3.388:390](∅→∅),[3.4224]→[3.388:390](∅→∅),[3.388]→[3.388:390](∅→∅),[3.468]→[3.468:469](∅→∅),[3.469]→[2.564:804](∅→∅)
fn main() {block_on(async_main())}async fn async_main() {let rocket = nidobyte::rocket();rocket.await.ignite().await.expect("rocket failed to ignite").launch().await.expect("failed to launch rocket");#[rocket::launch]fn launch() -> _ {nidobyte::rocket() - replacement in src/lib.rs at line 16
pub async fn rocket() -> Rocket<Build> {pub fn rocket() -> Rocket<Build> { - edit in Cargo.toml at line 11
futures = "0.3" - edit in Cargo.lock at line 1566
"futures",