Commit Graph
47 Commits
Author SHA1 Message Date
Stephan 4fd8a4c978 Add reference to custom Request typings 2021-11-11 11:57:36 +01:00
Stephan 60f7c8fff5 Export requireAuthentication 2021-11-10 16:12:55 +01:00
Stephan c869863aea Add middleware to require authentication on an endpoint 2021-11-10 16:04:26 +01:00
Stephan 1b7a40cf7c Add the pid to the JWT payload 2021-11-10 15:11:29 +01:00
Stephan fc78f730bd Add redis
+ Add a public lib file for redis
  + Add an indexed auth client
  + Add a function to create promisified partial clients
+ Add password revisions to the auth redis index
2021-11-10 12:08:07 +01:00
Stephan 5ee5218d5a Use the description attribute in add and get controllers 2021-11-10 11:31:22 +01:00
Stephan aec6604d24 Update the code to use the latest database schema 2021-11-10 11:15:51 +01:00
Stephan a1e56f7494 Merge branch 'dev' into feature-user-auth 2021-11-10 10:45:08 +01:00
Stephan 08e2f9fa2e Merge branch 'feature-db-schema' into dev
+ Extend the admin model
+ more
2021-11-10 10:42:40 +01:00
Laurin 0eb284a00d formated last commit 2021-11-10 10:40:06 +01:00
Laurin eb64432ad4 Admin + small changes 2021-11-10 10:04:00 +01:00
Stephan f45f3c7155 Merge branch 'dev' into feature-user-auth
+ Added new DB schema
2021-11-10 08:54:57 +01:00
Stephan e4fab0f5b6 Merge pull request #16 from detleph/feature-db-schema
Updating DB-schema
2021-11-10 08:52:42 +01:00
Stephan bc88ea3fe0 Merge branch 'dev' into feature-user-auth 2021-11-10 08:41:02 +01:00
Stephan 6d062ce1d7 Merge main with fix into dev 2021-11-10 08:38:30 +01:00
Laurin 4319620bfd small changes from feedback 2021-11-10 08:28:23 +01:00
Stephan 25cd76313b Merge pull request #15 from detleph/fix-superagent
Fix the error where the code doesn't compile
2021-11-10 08:24:04 +01:00
Stephan 3d961ab53d Add controller for authenticating with admin name and password
+ Add function to create a JWT with the required payload
2021-11-10 08:19:17 +01:00
Laurin 8299060d00 Format schema, Adjust enum naming 2021-11-09 15:44:15 +01:00
Stephan f2e18e1656 Fix the error where the code doesn't compile
TypeScript is not used for browser development here, hence it does not know the type XMLHttpRequest (used by SuperAgent)
This is not an ideal solution
2021-11-09 15:40:38 +01:00
Laurin a0d033672a Adding enum (Gender, AdminLevel) 2021-11-09 15:39:09 +01:00
Laurin 1d87860be0 Adding LinkObject; adjust details 2021-11-09 15:17:20 +01:00
Stephan eff8dd0860 Add the redis server to docker-compose.yml 2021-11-09 12:25:56 +01:00
Laurin 5223c50881 update campaign, participants, group 2021-11-03 14:57:14 +01:00
StephanandStefan d596670f6b Add mail functionality into the development branch (#12)
* Added basic code for sending emails
+ Added tests for emails
+ Modified README.md to reflect changes to .env file

* [create-pull-request] push formatted files

* Added dkim

* Fixed mistake in docker-compose.yml

Co-authored-by: Stefan <[email protected]>
2021-11-03 11:01:37 +01:00
Laurin 124773cce3 Add leader fields 2021-11-01 18:45:05 +01:00
Laurin 30ffd094bd Normalize schema 2021-11-01 18:19:41 +01:00
BuildTools 5c0bc20bfd Added docker-compose
+ start script for people who cant remember
2021-10-28 16:08:16 +02:00
Stephan e816e0beee Check formatting on the dev branch
The dev branch should also enforce correct formatting;
2021-10-19 11:53:53 +02:00
Stefan ea6b2d73d0 Chaned Prisma shema due to Issue: #8
- Added Role model
- Added Roles to disciplinese and Participants
2021-10-19 08:27:36 +02:00
Stephan 9a57610362 Merge pull request #10 from detleph/dev
Merge dev branch into main
2021-10-19 07:53:34 +02:00
Stephan d62ae153b3 Merge pull request #9 from detleph/feature-test
Added tests for the event endpoints
2021-10-19 07:51:10 +02:00
Stefan-5422 8d50c44b7e Added tests for the event endpoints
Also installed chai, chai http & mocha
2021-10-18 13:14:13 +02:00
Stefan-5422 a966bfffd9 Added Event Endpoints; Dotenv; npm Scripts
+ GET    /events/
+ POST /events/
2021-10-17 02:30:01 +02:00
Stephan 4b0615ac27 Merge pull request #6 from detleph/create-pull-request/patch
Reformat files using prettier
2021-10-15 16:10:45 +02:00
stephan418 c54d9492c8 [create-pull-request] push formatted files 2021-10-15 13:36:56 +00:00
Stephan d74094970e Create .prettierignore 2021-10-15 15:36:22 +02:00
Stephan f1e8ea6671 Add action for format files 2021-10-15 15:28:37 +02:00
Stephan 4d37472726 Create workflow to check formatting
The workflow checks whether all the files are formatted correctly (.prettierrc)
2021-10-15 11:40:39 +02:00
Stephan ee81acea24 Add name to events in the prisma schema 2021-10-15 11:08:42 +02:00
Stephan 5e9fb04632 Add .prettierrc file
Should be used in all environments for consistency
2021-10-14 14:44:53 +02:00
Stephan a46c10018d Update the main Prisma schema
- Added two distinct IDs (A private, serial PK and a public, UUIDv4-based, API ID)
- Added default values
- Applied some basic formatting (Field names, ...)
2021-10-14 13:43:06 +02:00
Stephan dfcbe130ee Remove migrations
Migrations should not be in the repository
2021-10-11 13:27:38 +02:00
Stephan 62cc1cc122 Ignore Prisma migrations
Prisma migration files should not be pushed
2021-10-11 13:26:59 +02:00
Stefan a934017d87 boilerplate 2021-10-11 12:06:02 +02:00
Stefan 01f5521433 boilerplate part1 2021-10-11 09:32:42 +02:00
Stefan af9e7f3eec Initial commit 2021-10-11 09:19:55 +02:00