Create database interface
This commit is contained in:
parent
57f21e2634
commit
376e18d5ff
3 changed files with 98 additions and 1 deletions
2
todo.md
2
todo.md
|
|
@ -3,7 +3,7 @@
|
|||
[x] Template a Rouille server that always returns an empty 404.
|
||||
[x] 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.
|
||||
[x] 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.
|
||||
[x] 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 `main.css` file in src. Use mvp.css as a starting point.
|
||||
[ ] Create a `project-card.js` file in src that creates a web component for displaying a project.
|
||||
[ ] Using a Rouille router, create `GET /main.css` and `GET /project-card.js` endpoints that returns the relevant files. Use the include_bytes! macro.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue