This webshop is completely broken and on purpose includes some exciting vulnerabilities like SQL injection and XSS.
For configuring the app you can either set these variables in your environment or provide a .env
file.
NODE_ENV
— the environment the app is running in (production|development)PORT
— the port the app should be listening onLOG_LEVEL
— the log level at which logging entries should be displayed/savedJWT_SECRET
— a super long secret for creating jwt signaturesDB_HOST
— host of the database e.g.localhost
ormy-db.example.com
DB_PORT
— the database portDB_TYPE
— a database type supported by TypeORMDB_USER
— the database userDB_PASSWORD
— the database users passwordDB_NAME
— the name of the database that should be usedDB_SSL
— should the database connection use SSL (true|false)
Extra info is available in the .env.sample
file.