Template server
This commit is contained in:
parent
fac1341c1f
commit
a20f53340c
5 changed files with 1127 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/target
|
||||||
1111
Cargo.lock
generated
Normal file
1111
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
7
Cargo.toml
Normal file
7
Cargo.toml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[package]
|
||||||
|
name = "makeprogress"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
rouille = "3.6"
|
||||||
7
src/main.rs
Normal file
7
src/main.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Starting server on localhost:8080");
|
||||||
|
|
||||||
|
rouille::start_server("localhost:8080", move |_request| {
|
||||||
|
rouille::Response::empty_404()
|
||||||
|
});
|
||||||
|
}
|
||||||
2
todo.md
2
todo.md
|
|
@ -1,6 +1,6 @@
|
||||||
# Todo
|
# Todo
|
||||||
|
|
||||||
[ ] Template a Rouille server that always returns an empty 404.
|
[x] Template a Rouille server that always returns an empty 404.
|
||||||
[ ] Create a database schema. There should just be one table for now: `projects`. The Projects table contains info about each project in the board. The table should have columns for title, created time, last modified time, percentage completed (integer), and a flag for archived. Since this is a single-user server, there doesn't need to be an metadata about whose project it is.
|
[ ] Create a database schema. There should just be one table for now: `projects`. The Projects table contains info about each project in the board. The table should have columns for title, created time, last modified time, percentage completed (integer), and a flag for archived. Since this is a single-user server, there doesn't need to be an metadata about whose project it is.
|
||||||
[ ] Create a `Project` struct that corresponds to the schema definition.
|
[ ] Create a `Project` struct that corresponds to the schema definition.
|
||||||
[ ] Create a module or struct at your discretion for interfacing with the database. Create functions for the following: create a project, update a project's progress, archive a project, unarchive a project, and list of all projects.
|
[ ] Create a module or struct at your discretion for interfacing with the database. Create functions for the following: create a project, update a project's progress, archive a project, unarchive a project, and list of all projects.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue