Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLx + Axum Lab

In this lab, you are going to extend the bookmark web app to add deletion and update functionality.

To start, create the example database by running ./mk-db.sh.

Deleting a bookmark

  1. Modify the detail page to add a link to a delete endpoint.
  2. Create the delete endpoint, it should redirect to the /bookmarks page after success.

Modifying a bookmark

  1. Modify the detail page to add an update link that should go to the page in the next step.
  2. Add a new template for a "modify bookmark" page, you can base this off of the "create bookmark" page.
  3. Create endpoints for (a) this template, and (b) to handle the submission of the "modify bookmark" form.
    • When the form is submitted, the bookmark should be modified, and the client should be redirected to the bookmark's detail page.

About

A simple web server with Axum for CS 272

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages