Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/set mongo db #17

Merged
merged 30 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d0ca787
DB connection complete
colemanirby Sep 30, 2024
3b23a3a
Verified Creation and Deletion of records
colemanirby Oct 1, 2024
c46e971
included extra deletion functionality
colemanirby Oct 1, 2024
a5eb9b0
merging main
colemanirby Oct 2, 2024
81a604b
Added back DB functionality
colemanirby Oct 2, 2024
b5f6ad0
updated methods for loading and storing in db
colemanirby Oct 2, 2024
36746a2
adding object id to cookies for mmr retrieval during later sessions
colemanirby Oct 2, 2024
4b73c7f
Flipped flag to use mongodb by default, removed test endpoints, clean…
colemanirby Oct 2, 2024
5a6c7ee
pushing cleanup
colemanirby Oct 4, 2024
d7e41af
removed file store methods. Added error handling to store.rs
colemanirby Oct 4, 2024
6a7c57b
removed object_id from cookie retrieval
colemanirby Oct 4, 2024
70d1508
moved error handling up one level for writing to DB
colemanirby Oct 4, 2024
1005022
code cleanup
colemanirby Oct 4, 2024
1f46df0
Full error handling implemented. Need different Error codes for none-…
colemanirby Oct 4, 2024
f4d9567
updated status code for no record in db to 400
colemanirby Oct 4, 2024
525d84a
Added error handling to record insertion
colemanirby Oct 4, 2024
775ab21
updated formatting
colemanirby Oct 4, 2024
cfc27fa
using Store struct which is managed by Rocket
colemanirby Oct 7, 2024
9232daa
resolving merge conflict
colemanirby Oct 7, 2024
a92addd
Update src/main.rs
juangirini Oct 8, 2024
635dcfe
Update src/main.rs
juangirini Oct 8, 2024
733c355
Update src/store.rs
juangirini Oct 8, 2024
683f338
Update src/store.rs
juangirini Oct 8, 2024
cc4d987
chore: clean up code
juangirini Oct 8, 2024
d9aa4b2
chore: fix merge conflicts
juangirini Oct 8, 2024
047f884
fix: make MurmurStore writable to db and fix update case
juangirini Oct 9, 2024
dc86f25
chore: add .env.template
juangirini Oct 9, 2024
d8241d8
chore: improve readme
juangirini Oct 9, 2024
7336462
feat: return error if msk lenght is wrong
juangirini Oct 9, 2024
8fffb13
chore: update cargo lock
juangirini Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SALT="your_salt_string" # 16 chars length
EPHEM_MSK="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32" # 32 comma separated u8 values
DB_NAME="MurmurDB"
DB_COLLECTION="mmrs"
DB_URI="mongodb://localhost:27017"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
mmr_store
mmr_store
.env
Loading
Loading