mlim-usfca / PersonalKnowledge

https://personal-knowledge.vercel.app
0 stars 0 forks source link

Huimin/savelink #26

Closed Huimin22 closed 7 months ago

Huimin22 commented 7 months ago

Project Name

Description

This PR implements the functionality to save links for authenticated users after successful login. The saved links are stored in the backend database.

Usage Instructions

Starting Supabase Service

  1. Start the Supabase service by navigating to the PersonalKnowledge/server directory:

    supabase start
  2. Retrieve relevant Supabase service information. Open the Studio URL to view database changes.

Starting Frontend Project

  1. Navigate to the PersonalKnowledge/web directory:
  2. Start the frontend project using npm:
    npm run dev
  3. Upon initial login, use Google OAuth.

Using Save Webpage Feature

  1. Navigate to the "Saves" page in the web application.
  2. Click on the plus (+) button to add a new link.
  3. Paste the link you want to save and select a link label (e.g., "to visit" or "to eat").
  4. Click the submit button.
  5. If the submission is successful, a notification will pop up indicating save successfully.

Database Changes

Check the changes in the backend database in Supabase by selecting Table Editor and viewing the links table to ensure that your link is successfully saved.

Fix error

If you have " Cannot submit " error, you can run

supabase migration list --db-url postgresql://postgres:postgres@127.0.0.1:54322/postgres 
 supabase migration up

Feedback and Contributions

Any feedback and suggestions for this feature are welcome. Contributors are encouraged to submit pull requests or open issues for improvements.