https://github.com/ajsalemo/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.
https://github.com/ajsalemo/expressapi
agentkeepalive axios azure container database docker express http javascript keepalive node pm2 postgres process-manager sequelize
Last synced: 1 day ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/ajsalemo/expressapi
- Owner: Ajsalemo
- Created: 2021-04-19T23:22:25.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T20:58:08.000Z (over 4 years ago)
- Last Synced: 2026-01-03T14:35:32.060Z (3 months ago)
- Topics: agentkeepalive, axios, azure, container, database, docker, express, http, javascript, keepalive, node, pm2, postgres, process-manager, sequelize
- Language: JavaScript
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.