mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
382a42d4393a1b457620eb5fb50fc7805e007624
+ Add express-async-errors package to handle async errors + Add ForwaradableError class (Base class for all project-specific errors) + Add defaultErrorHandler middleware which handles errors and sends info to the client
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
Languages
TypeScript
96.7%
Shell
2.7%
Dockerfile
0.6%