All notable changes to the API Structure will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
-
/bin
directory. It has two useful binaries.stress-test
-> Used to test the API under load of multiple concurrent requestsupdate-ecosystem
-> A binary which reads the.env
file and generatesecosyste.config.json
which is used by PM2
-
/deployment
directory. It will contain the information related to deployment of the APIapi.conf
-> A sample nginx configuration file which should directly be included in mainnginx.conf
Dockerfile
-> A file that will build the Docker image of the APIecosystem.default.js
-> Defaults file for PM2 configuration. The configurations from this file will have the higher precedence. Thus, it is the ideal place to define environment variable
-
/internals
directory.prettierrc
-> A prettier config file which makes sure that the checked code on repository remains consistence regardless of local.prettierrc
-
/logs
directory for date wise logs of client and server -
/pkg
directory which contains the tarball of the project. You can directly share it and runnpm install <tarball-name>.tgz
-
/config/client-logs.config.js
. An Express Middleware configuration file which receives logs from client -
/utils/client-logger.js
A logger file to process incoming logs from client -
/config/cors.config.js
. Configuration file for express middleware CORS
-
File name changes
express.js
toexpress.config.js
session.js
tosession.config.js
-
/utils/logger.js
The winston version has been updated. A winston module is used to keep the logs for each day -
/middleware/error.js
The error now reports IP from where the request is received, timestamp as well as the path -
/constants
The trick to avail autocomplete removed. A clean solution is introduced. The merging of constants throws error if no environment is found