mcheman / SharedBookmarks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shared Bookmarks

A shared bookmarks feed for a group of people to keep track of interesting web pages together.

  • todo Easily share interesting web links through a browser extension.
  • todo Support text and images as well as web links.
  • todo Support comments.
  • todo Support users and group creation/deletion/membership.

Running

  1. Create a .env file to specify the database path
DATABASE_URL="sqlite:shared-bookmarks.db"
  1. Install sqlx-cli
cargo install sqlx-cli
  1. Create and migrate the database
sqlx db create
sqlx migrate run
  1. Start the application
cargo run
  1. Hit the api with curl to add new posts
curl -H 'Content-Type: application/json' http://localhost:8000/api/addPost -d '{"url":"http://my-interesting-url.com/cool-beans","title":"Growing beans in a cold climate"}'
  1. Navigate to http://localhost:8000 to view the web interface

About


Languages

Language:Rust 63.0%Language:Handlebars 11.8%Language:JavaScript 9.1%Language:CSS 8.8%Language:Shell 7.4%