Add account feature and save searches#7
Open
JackAdamsJenkins wants to merge 1 commit intoshadowfax92:mainfrom
Open
Add account feature and save searches#7JackAdamsJenkins wants to merge 1 commit intoshadowfax92:mainfrom
JackAdamsJenkins wants to merge 1 commit intoshadowfax92:mainfrom
Conversation
Fixes shadowfax92#4 Add user account management and search history saving functionality. * **Dependencies**: Add `sqlx`, `bcrypt`, and `tokio` dependencies in `Cargo.toml`. * **Documentation**: Update `README.md` to include instructions for setting up the database, using accounts, and saving searches. * **Command-line Arguments**: Add `register` and `login` arguments in `src/args.rs` for user account management. * **Main Functionality**: Modify `src/main.rs` to handle user registration, login, and search history saving. * **Data Structures**: Add `User` and `SearchHistory` structs in `src/data.rs` for user account management and search history. * **Database Interaction**: Add `src/db.rs` to handle database connection, user registration, login, and saving search history. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/shadowfax92/Fyin/issues/4?shareId=XXXX-XXXX-XXXX-XXXX).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4
Add user account management and search history saving functionality.
sqlx,bcrypt, andtokiodependencies inCargo.toml.README.mdto include instructions for setting up the database, using accounts, and saving searches.registerandloginarguments insrc/args.rsfor user account management.src/main.rsto handle user registration, login, and search history saving.UserandSearchHistorystructs insrc/data.rsfor user account management and search history.src/db.rsto handle database connection, user registration, login, and saving search history.