This PR implements the functionality to create new categories and save links according to categories for authenticated users after successful login.
Usage Instructions
Starting Supabase Service
Start the Supabase service by navigating to the PersonalKnowledge/server directory:
supabase start
You need to update database.
Run
supabase migration list --db-url postgresql://postgres:postgres@127.0.0.1:54322/postgres
supabase migration up
supabase db reset
Retrieve relevant Supabase service information. Open the Studio URL to view database changes.
Starting Frontend Project
Navigate to the PersonalKnowledge/web directory:
Start the frontend project using npm:
npm run dev
Upon initial login, use Google OAuth.
Saving New Categories
Click on the "New Category" button in the web application.
Enter the new category and submit.
You can check the categories table in the Supabase database to verify if the new category is saved successfully.
Add the categories "Food," "Theory," and "Sport" to the categories table in the Supabase database to ensure that links can be saved under these categories.
Saving New Links
Click the plus (+) button on the right to add a new link.
Paste the link you want to save and select a link label.
You can check the category_link_relation table and links table in the Supabase database to verify if the new link is saved with the corresponding category.
Potential Error
If you have error "Extract content failed", you can comment the code from line 43 to line 52 in newlink.tsx.
Feedback and Contributions
Any feedback and suggestions for this feature are welcome. Contributors are encouraged to submit pull requests or open issues for improvements.
Description
This PR implements the functionality to create new categories and save links according to categories for authenticated users after successful login.
Usage Instructions
Starting Supabase Service
Start the Supabase service by navigating to the
PersonalKnowledge/server
directory:You need to update database. Run
Retrieve relevant Supabase service information. Open the Studio URL to view database changes.
Starting Frontend Project
PersonalKnowledge/web
directory:Saving New Categories
Saving New Links
Potential Error
If you have error "Extract content failed", you can comment the code from line 43 to line 52 in newlink.tsx.
Feedback and Contributions
Any feedback and suggestions for this feature are welcome. Contributors are encouraged to submit pull requests or open issues for improvements.