JavaScript - Node.js + Redis
Node.js is a framework for the JavaScript language that allows you to create a web application using only this language, running JavaScript on the server side instead of in the browser. It is compatible with all other JavaScript frameworks, as well as with its own plugins and extensions.
Redis is an easy-to-use and easy-to-configure in-memory temporary database system that achieves great efficiency and speed. Thanks to its caching system, it allows faster access to the most frequently queried data.
Project structure
.
├── app
│ ├── package.json
│ ├── package-lock.json
│ └── server.js
├── app.Dockerfile
├── compose.yaml
└── README.txt
Application deployment:
Change to the directory that contains the files necessary to build the container:
cd /root/stack/python/flask-mysql
Bring the application up:
docker compose up -d
Useful commands:
View the containers that are running:
docker compose ps
Stop and remove the application:
docker compose down
Rebuild the application after making changes to the code:
docker compose --build -d