mirror of
https://github.com/detleph/server.git
synced 2026-09-04 00:26:03 +02:00
eb20ff4965a9a376d9e5317aa8c9f25924598cbb
+ Add possibility (_requireAdminAuthentication, _requireTeamleaderAuthentication) to make auth optional + Add possibility to combine multiple auth types into one function
server
SETUP
Before Runningthis on you local machine some things have to be setup
-
Run npm install
-
Add .env file with following variables:
DATABASE_URL: ADDRESS TO YOUR DATABASE DATABASE_PASSWORD: PASSOWRD OF THE DATABASE PORT: PORT WHERE THE API SHOULD RUN DOMAIN: THE DOMAIN NAME OF THE SERVER MAILPASSWORD: THE PASSWORD FOR THE MAIL ACCOUNT DEV: SWITCH FOR DEV MODE AFFECTS EMAIL SERVER ALLOW_ORIGIN: ORIGIN OF THE PRODUCTION CLIENT (FOR CORS)
Languages
TypeScript
96.7%
Shell
2.7%
Dockerfile
0.6%