An Express.js CRUD API that calls to a Postgres database using Sequelize. Pm2 is used for production process management and Agentkeepalive for connection reuse on calls using Axios.
Project makeup:
express
is used as the server fielding HTTP requestsaxios
is used for API calls to other API based endpointspostgres
is used for the 'main' part of this repository which is a CRUD based applicationsequelize
is used as the ORM paired with Azure Database for PostgreSQLagentkeepalive
is used for connection reuse and keepalives that is passed intoaxios
This project uses two approaches for making requests
- the
controllers/axios
folder which contains API calls using Axios to test outagentkeepalive
and connection reuse/keepalives - the
controllers/postgres
folder which contains calls to Postgres with the help of Sequelize to also test out the use of connection pooling.
Ideally, this project is a combination of techniques created primarily for testing while using Express as a backbone. This can either be ran containerized or with Pm2 separately.