Skip to content

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.

Notifications You must be signed in to change notification settings

Ajsalemo/ExpressAPI

Repository files navigation

ExpressAPI


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 requests
  • axios is used for API calls to other API based endpoints
  • postgres is used for the 'main' part of this repository which is a CRUD based application
  • sequelize is used as the ORM paired with Azure Database for PostgreSQL
  • agentkeepalive is used for connection reuse and keepalives that is passed into axios

This project uses two approaches for making requests

  • the controllers/axios folder which contains API calls using Axios to test out agentkeepalive 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published