Commit Graph

142 Commits

Author SHA1 Message Date
Blake Duncan
14101019aa Cors config for socket io 2023-08-08 17:02:24 -04:00
933a208357 feat: updated random Big Int to be roughly the same length as posiedon hash 2023-08-07 10:44:29 -04:00
5bc46cdb6b fix return in test utils 2023-08-04 14:48:39 -04:00
7783fdcf81 test utils 2023-08-04 14:46:59 -04:00
Tanner Shaw
847029cfae chore(merge) fixed merge conflicts 2023-08-04 13:03:30 -05:00
620b4a7875 updated jest config 2023-08-04 13:53:35 -04:00
7f55555296 adding jest env 2023-08-04 13:53:04 -04:00
df79021f0d fix security bug where admin password was passed to client UI in dev environment 2023-08-04 11:02:23 -04:00
AtHeartEngineer
91c258a6fe feature(jest) writing tests for express endpoints (#27) 2023-08-04 09:53:56 -04:00
Tanner Shaw
63584389f6 Merge branch 'jest' of github.com:Discreetly/server into jest 2023-08-03 18:12:39 -05:00
Tanner Shaw
c33e8b7bde feature(jest) added POST /join test
refactor(utils) updateRoomIdentities to only add an identity if that identity doesn't exist already.
2023-08-03 18:12:26 -05:00
093dcb0578 fix prettyprint to handle object in table 2023-08-03 18:31:32 -04:00
cb3f06c27b fixed test conflicts with tsconfig and rollup errors 2023-08-03 18:22:45 -04:00
8690544515 fixing typing in linting 2023-08-03 17:42:47 -04:00
4c8cd791d9 fix join typing issues, hopefully 2023-08-03 17:28:14 -04:00
8ee75a15d9 test fixes, verifier updates, schema updates 2023-08-03 17:16:29 -04:00
612058cea0 chore: message testing 2023-08-03 17:05:43 -04:00
9ebdf7030b fix: getRoomByID typing 2023-08-03 15:51:15 -04:00
Tanner Shaw
75bfc23790 refactor(config) fixing ServerID and Name 2023-08-03 14:49:10 -05:00
AtHeartEngineer
e917e1021f Merge branch 'main' into jest 2023-08-03 15:27:21 -04:00
AtHeartEngineer
9aeb1ed306 Update linter.yml
Switching to reviewdog for eslint
2023-08-03 15:18:17 -04:00
Tanner Shaw
3e32ab82a6 Merge branch 'jest' of github.com:Discreetly/server into jest 2023-08-03 14:11:13 -05:00
Tanner Shaw
9657d52271 refactor(jest-tests) refactoring tests to make sure theres no false positives 2023-08-03 14:10:57 -05:00
0224256d5c Merge branch 'linting' 2023-08-03 14:56:01 -04:00
1877c9c123 feat(linting) fixed the linting setup and most of the linting errors 2023-08-03 14:50:49 -04:00
AtHeartEngineer
4dce775b19 Merge branch 'main' into jest 2023-08-03 12:02:13 -04:00
AtHeartEngineer
48961515c6 Save messages (#26)
Save messages on backend database
2023-08-03 11:58:03 -04:00
Tanner Shaw
942f3a8fee feature(jest) writing tests for express endpoints 2023-08-03 10:55:46 -05:00
AtHeartEngineer
446a653946 Merge branch 'main' into create-messages 2023-08-03 11:54:52 -04:00
AtHeartEngineer
da26a29486 Heroku (#25)
Refactored Express and SocketIO to be on 1 port, which is assigned by an
environmental variable within heroku for production, and is 3001 for
development.

The Express Rest API works, but the socketio connections are untested as
of right now
2023-08-03 11:53:32 -04:00
AtHeartEngineer
d21031823d Merge branch 'main' into heroku 2023-08-03 11:52:43 -04:00
f8c10b3993 fix: /api/rooms/idc wasn't returning roomIds 2023-08-01 20:59:04 -04:00
b31504e691 comment: added link to idcNullifierCircuit in Todo 2023-08-01 20:36:40 -04:00
AtHeartEngineer
30a671b538 Endpoint for fetching all messages for a room (#23) 2023-08-01 19:30:23 -04:00
9a50c2f766 chore: duplicate code from merge issue 2023-08-01 19:28:11 -04:00
c04f35823f fix env PORT for production, PORT 3001 for dev 2023-08-01 19:19:59 -04:00
0ac5d60d13 fix typo 2023-08-01 19:17:30 -04:00
226cfee1f9 fix PORT is necessary for heroku to host 2023-08-01 19:14:59 -04:00
c1d7ec09bf chore renamed env variables to prevent conflicts with heroku 2023-08-01 18:59:30 -04:00
f2e00ac26a feat: trying to get heroku to deploy 2023-08-01 18:35:24 -04:00
6c1ff44770 feat: configurable port/ws-port/name in .env 2023-08-01 16:50:58 -04:00
AtHeartEngineer
4d13c4f84a Merge branch 'main' into create-messages 2023-08-01 14:21:37 -04:00
f407dcb630 fix env variable name being incorrect 2023-08-01 14:06:36 -04:00
Tanner Shaw
4cd58d6461 feature(express) endpoint for fetching all messages for a room 2023-08-01 12:35:39 -05: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