This frontend repository is build using NodeJS version 18.12 and yarn version 3.3.0.
run the dev build with yarn run start:dev
run production build with yarn run start:prod
To initialize the yarn SDK for VS Code run: yarn dlx @yarnpkg/sdks vscode
- express
- validator
- dotenv
- bcrypt
- jsonwebtoken
- mongoose Might be replaced by the native mongodb driver in production
- rate-limiter-flexible
- redis
- connect-redis
- @sendgrid/mail During the development stage
- helmet
- express-session
This project uses strong type checking for environmental variables. Be sure to include all the necessary variables in your secret file. Best practice would be not to store the values in a .env file, but to use a containerization tool like docker and expose the variables via a direct stream insertion.
Required are:
- APP_NAME
- NODE_ENV
- PORT
- SESSION_SECRET
- MONGODB_USERNAME
- MONGODB_PASSWORD
- MONGODB_DB_NAME
- MONGODB_URI
- SALT
- JWT_EXPIRES
- COOKIE_EXPIRES
- REDIS_USERNAME
- REDIS_PASSWORD
- REDIS_HOST
- REDIS_PORT
- SMTP_HOST
- SMTP_PORT
- SMTP_USERNAME
- SMTP_PASSWORD