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:
expressis used as the server fielding HTTP requestsaxiosis used for API calls to other API based endpointspostgresis used for the 'main' part of this repository which is a CRUD based applicationsequelizeis used as the ORM paired with Azure Database for PostgreSQLagentkeepaliveis used for connection reuse and keepalives that is passed intoaxios
This project uses two approaches for making requests
- the
controllers/axiosfolder which contains API calls using Axios to test outagentkeepaliveand connection reuse/keepalives - the
controllers/postgresfolder 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.