Commit Graph

99 Commits

Author SHA1 Message Date
f407dcb630 fix env variable name being incorrect 2023-08-01 14:06:36 -04:00
AtHeartEngineer
5d6d38979b refactor(express) /join route refactored (#21)
chore(prisma) changed room to roomId
2023-07-31 14:40:26 -04:00
66be9c97a3 Merge branch 'main' into create-messages 2023-07-31 14:39:45 -04:00
AtHeartEngineer
84bae3af99 Auth (#22)
Added a basic authentication mechanism into some of the endpoints
2023-07-31 14:29:21 -04:00
c6899a2af1 chore removed commented out code 2023-07-31 14:29:06 -04:00
f0a18cdc62 chore(dependency) version bump of interfaces 2023-07-31 14:25:49 -04:00
f5da551ea4 feat(schema) Updated scheme to handle multiple membership types 2023-07-31 14:14:36 -04:00
ec1b81d826 chore(script) removed docker from npm run 2023-07-31 14:02:05 -04:00
Tanner Shaw
228a238bad refactor(express) /join route refactored
chore(prisma) changed room to roomId
2023-07-29 15:47:54 -05:00
5067925c5f feat(auth) added basic auth to admin endpoints 2023-07-28 14:13:38 -04:00
a44abe2e0a feat(Messages) add messageID field (internal nullifier) 2023-07-28 00:08:23 -04:00
833b7f4cd9 chore(debug) removed debug value 2023-07-27 23:55:52 -04:00
2ef6571646 fix for bug on /api/room/id 2023-07-27 23:38:26 -04:00
c5bfdf440c fix(/join) fixed /join not responding with roomIDs
chore(seed) improved room creation for seeding
2023-07-27 22:24:39 -04:00
AtHeartEngineer
a51d587487 chore(code reorg) segmented code better (#18)
* Moved all the server setup into separate files, broken down by
websockets and endpoints.
* Moved ZK/Crypto stuff to its own folder
2023-07-27 20:58:24 -04:00
AtHeartEngineer
071fb66231 Merge branch 'main' into code-reorg 2023-07-27 20:58:17 -04:00
62dc4a51fe chore: types and todos 2023-07-27 20:57:18 -04:00
50c0bfd477 refactor(server) rename websocketSetup to initWebsockets 2023-07-27 20:47:31 -04:00
b60e49e080 chore(code reorg) segmented code better 2023-07-27 20:43:59 -04:00
AtHeartEngineer
11786887fd fix(server.ts): change variable name from codeStatus to claimCode for… (#17)
… better readability and semantics

fix(server.ts): update the logic to update the claimCode and push the
idc to the identities array of each room associated with the claimCode
feat(server.ts): return a success message with status code 201 when
claim code is successfully claimed
feat(server.ts): return an error message with status code 400 when claim
code is already used
2023-07-27 19:48:16 -04:00
Tanner Shaw
622c37d4d7 fix(server.ts): change variable name from codeStatus to claimCode for better readability and semantics
fix(server.ts): update the logic to update the claimCode and push the idc to the identities array of each room associated with the claimCode
feat(server.ts): return a success message with status code 201 when claim code is successfully claimed
feat(server.ts): return an error message with status code 400 when claim code is already used
2023-07-27 23:44:06 +00:00
717198c140 chore: removing open commit action 2023-07-27 19:39:15 -04:00
a7b43d1623 update gitignore 2023-07-27 19:34:29 -04:00
Tanner
1daf209b62 Prisma orm (#16) 2023-07-27 17:09:54 -05:00
1a4398cb52 Merge conflicts for Prisma ORM Branch into main 2023-07-27 18:06:46 -04:00
Tanner
7e4f8d0fdb Express routes (#15)
* WIP - Starting to refactor routes for prisma

* feat(prisma) remove roomId from ClaimCodes model
refactor(prisma) seed claim codes using ClaimCodeManager
refactor(server) initialize ClaimCodeManager
feat(server) add claimcodes endpoint
refactor(server) claim code in /join endpoint

* chore(claimcodes) updated claim code system

* chore(schema): added rate limiting and epoch tracking

* feature(endpoints) /join /logclaimcodes
refactor(schema) Rooms Claimcodes many-to-many

---------

Co-authored-by: AtHeartEngineer <atheartengineer@gmail.com>
2023-07-27 17:14:26 -04:00
Tanner Shaw
dd116d712f WIP - refactored Rooms model. Added ClaimCodes and Messages models 2023-07-26 17:45:33 -05:00
Tanner Shaw
104d1f5972 WIP m-n identities to rooms for prisma schema 2023-07-26 15:14:44 -05:00
AtHeartEngineer
77563b09f5 Added linting packages (#14)
You can remove the `linting` branch after this is merged
2023-07-26 12:00:37 -04:00
AtHeartEngineer
2cfb207736 chore(dependabot.yml): add Dependabot configuration file to enable automated dependency updates 2023-07-26 14:44:40 +00:00
AtHeartEngineer
9fd1fa5dbb chore(dependabot.yml): add Dependabot configuration file to enable automated dependency updates 2023-07-26 14:44:40 +00:00
AtHeartEngineer
3b8ca1ffee Create dependabot.yml 2023-07-26 01:07:08 -04:00
AtHeartEngineer
7a49d882c0 Merge pull request #13 from Discreetly/verifier
chore: linting fixes, github actions tests, and remove completed todos
2023-07-26 00:54:34 -04:00
AtHeartEngineer
b79bc405da fix(startup.ts): fix assignment of loadedRooms variable to defaultRooms array
refactor(startup.ts): change let to const for claimedRooms and alreadyAddedRooms arrays
refactor(startup.ts): change let to const for r variable in response handling
2023-07-26 04:52:40 +00:00
AtHeartEngineer
b60f014933 chore(eslintrc.cjs): add ESLint configuration file to the project
fix(rooms.ts): remove unused import and type declaration
fix(mock.ts): change variable declaration from 'let' to 'const' for loop variable
fix(startup.ts): change variable declaration from 'let' to 'const' for userCount
fix(utils.ts): change parameter type from 'BigInt' to 'bigint' in findGroupById function
fix(verifier.ts): remove unused import statement for poseidon1 function
2023-07-26 04:51:35 +00:00
AtHeartEngineer
dd22266f5c Update linter.yml 2023-07-26 00:33:50 -04:00
AtHeartEngineer
ac7b6207d4 chore(tsconfig.json): remove unnecessary includes property and add missing newline at the end of the file 2023-07-26 04:33:21 +00:00
AtHeartEngineer
4ec62058c1 Delete spellcheck.yml 2023-07-26 00:20:40 -04:00
AtHeartEngineer
a2e679a067 chore(tsconfig.json): update "files" property to "includes" and include the entire "src" directory for better TypeScript compilation coverage 2023-07-26 04:15:58 +00:00
AtHeartEngineer
f71f905fac Update spellcheck.yml 2023-07-26 00:10:35 -04:00
AtHeartEngineer
233c7716cf Update spellcheck.yml 2023-07-26 00:08:55 -04:00
AtHeartEngineer
dfa316b505 chore(verifier.ts): remove commented out code and fix typo in comment
feat(verifier.ts): add TODO comment to implement internal nullifier verification using RLNjs cache
2023-07-26 04:04:03 +00:00
AtHeartEngineer
8c4f348f4f Create spellcheck.yml 2023-07-25 23:54:49 -04:00
AtHeartEngineer
ed3877854f Update credential_checker.yml 2023-07-25 23:51:18 -04:00
AtHeartEngineer
45a40bb212 Merge pull request #10 from Discreetly/github-actions
Create credential_checker.yml
2023-07-25 23:47:01 -04:00
AtHeartEngineer
0b81a073cb chore(linter.yml): update branch names in the workflow to reflect the default branch change from master to main 2023-07-26 03:46:34 +00:00
AtHeartEngineer
e216358151 feat(opencommit.yml): add OpenCommit Action workflow file
The OpenCommit Action workflow file is added to the repository. This workflow is triggered on push events, excluding the main, master, dev, development, and release branches. The workflow sets up the Node.js environment, checks out the repository, and uses the OpenCommit GitHub Action to generate commit messages using the OpenAI API. The necessary environment variables, including the GitHub token and OpenAI API key, are configured in the workflow. Customization options such as the maximum number of tokens, base path, description inclusion, emoji inclusion, model, and language are also set.
2023-07-26 03:45:17 +00:00
AtHeartEngineer
7ed0b67553 Create linter.yml 2023-07-25 23:41:41 -04:00
AtHeartEngineer
b0c9e45cd5 Create credential_checker.yml 2023-07-25 23:38:17 -04:00
AtHeartEngineer
62648c29e8 Merge pull request #9 from Discreetly/auto-asign
Auto asign
2023-07-25 23:23:23 -04:00