cyt-utils
v6.1.1
Published
A variety of utilities for the project
Downloads
16
Readme
CYT is a fork from the repo of the Software Architecture course in 2023/2024 edition. The goal of this project is to provide a fun way of learning and enhancing our general knowledge through an entertaining Q&A game.
Check out deployed docs on github pages for further information, and do not forget to explore our process over the wiki.
Summary
This package contains some common code between al the microservices of the project. Here are some functionalities:
- Generic field validator: For validating request object properties
- i18next utilites: Utilities for initialize i18next as well as a middleware to change the i18next language on the fly based on language headers.
- Logging utilities: Utilities for logging with winston, including a middleware for express and a logger factory.
- Generic error handler: Middleware for express to handle errors, logs them and return a proper response.