Commit Graph

55 Commits

Author SHA1 Message Date
AtHeartEngineer
4dce775b19 Merge branch 'main' into jest 2023-08-03 12:02:13 -04:00
Tanner Shaw
942f3a8fee feature(jest) writing tests for express endpoints 2023-08-03 10:55:46 -05: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
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
66be9c97a3 Merge branch 'main' into create-messages 2023-07-31 14:39:45 -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
c5bfdf440c fix(/join) fixed /join not responding with roomIDs
chore(seed) improved room creation for seeding
2023-07-27 22:24:39 -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
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
Tanner Shaw
dfc0948b91 refactored prisma schema 2023-07-25 12:55:57 -05:00
Tanner Shaw
b454bbb03f Starting to migrate to prisma/mongodb 2023-07-24 17:17:15 -05:00
AtHeartEngineer
b91f5f72d6 works with npm run start/dev with a local redis, but not a docker redis 2023-07-14 15:19:09 -04:00
AtHeartEngineer
cfe8986488 test 2023-07-13 16:39:29 -04:00
AtHeartEngineer
7b2501d755 redis heroku test 290 2023-07-13 16:24:53 -04:00
AtHeartEngineer
b607eceb46 new redis on heroku?! 2023-07-13 16:17:00 -04:00
AtHeartEngineer
a77c39a0dd tls 2023-07-13 16:08:09 -04:00
Tanner Shaw
7130770ddd fixed createGroup id's and types 2023-07-13 11:07:45 -05:00
Tanner Shaw
a8969fbfff Merge branch 'main' of github.com:Discreetly/server into main 2023-07-12 17:30:07 -05:00
Tanner Shaw
d1c069d31e route for creating claim codes for a group 2023-07-12 17:29:58 -05:00
fff2f556d2 logging redis config 2023-07-12 16:07:24 -04:00
674b4e4b9a trying this config for heroku 2023-07-12 16:03:13 -04:00
Tanner Shaw
229a11f44b removing clogs 2023-07-12 14:36:54 -05:00
Tanner Shaw
bbf08bbe60 Changed route to add groups to also generate claim codes for that group 2023-07-12 14:33:36 -05:00
0b99519b60 rollup initial config 2023-07-12 14:51:32 -04:00
Tanner Shaw
7bf3e7c95e Merge branch 'main' of github.com:Discreetly/server into main 2023-07-12 11:40:54 -05:00
Tanner Shaw
a22003b925 route for adding a room to a group 2023-07-12 11:39:51 -05:00
AtHeartEngineer
da2c486e57 log redis url 2023-07-12 12:08:38 -04:00
AtHeartEngineer
cc3298cd4d fixed redis on localhost, and i think fixed on heroku 2023-07-12 11:48:44 -04:00
AtHeartEngineer
eef05bca39 redis on heroku setup 2023-07-12 11:26:27 -04:00
AtHeartEngineer
bc05457656 fixed npm run start tsconfig issues 2023-07-12 11:13:15 -04:00
AtHeartEngineer
05cd6069c4 verifier mostly complete 2023-07-12 00:58:58 -04:00
AtHeartEngineer
18a2795c73 fixing types 2023-07-12 00:27:01 -04:00
Tanner Shaw
224678ddc6 refactored createGroup 2023-07-11 18:30:56 -05:00
690c83499e refactored /join & addIdentityToRoom to more reliably use redis 2023-07-11 18:37:56 -04:00
8eb7079821 idc add fix 2023-07-11 18:07:57 -04:00
5c79291130 claim codes are working 2023-07-11 17:36:37 -04:00
Tanner Shaw
c45852438f Route and utility for creating groups and rooms 2023-07-11 14:32:07 -05:00
23a89e28ff added automatic test messages 2023-07-10 02:25:41 -04:00
Tanner Shaw
cd7ff3d0f5 add identity to rooms based on given groupID 2023-07-09 15:58:27 -05:00
a273d4c8c8 updated room group IDs 2023-07-09 13:28:57 -04:00
924367ed1c updated /join and invite code stuff 2023-07-08 23:28:50 -04:00
Tanner Shaw
4ddeefb6c4 post route logic to add identifier to correct room, and get the groupID 2023-07-08 19:58:16 -05:00