Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanmayvaij/flask-redis-app
This repo demonstrates how to build a simple Flask application integrated with Redis, using Docker to containerize the entire setup. The project helps you understand how Flask interacts with Redis for caching and session management in a fully isolated development environment
https://github.com/tanmayvaij/flask-redis-app
docker docker-compose docker-container docker-image dockerfile flask flask-server redis
Last synced: 16 days ago
JSON representation
This repo demonstrates how to build a simple Flask application integrated with Redis, using Docker to containerize the entire setup. The project helps you understand how Flask interacts with Redis for caching and session management in a fully isolated development environment
- Host: GitHub
- URL: https://github.com/tanmayvaij/flask-redis-app
- Owner: tanmayvaij
- Created: 2024-04-10T05:41:43.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-22T11:27:30.000Z (5 months ago)
- Last Synced: 2024-11-21T04:18:51.024Z (3 months ago)
- Topics: docker, docker-compose, docker-container, docker-image, dockerfile, flask, flask-server, redis
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Flask Redis Docker App
This repository is created for **learning** and **proof-of-concept (POC)** purposes. It demonstrates how to build a simple Flask application integrated with Redis, using Docker to containerize the entire setup. The project helps you understand how Flask interacts with Redis for caching and session management in a fully isolated development environment.
## Features
- **Flask Framework**: A minimalistic web framework for building applications.
- **Redis Integration**: In-memory data storage used for caching and session management.
- **Dockerized Setup**: Simplifies development by containerizing both Flask and Redis services.## Prerequisites
Make sure you have the following installed:
- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)## Setup Instructions
### 1. Clone the Repository
Clone this repository to your local machine:
```bash
git clone https://github.com/tanmayvaij/flask-redis-app.git
cd flask-redis-app
```### 2. Build and Start the Containers
Use Docker Compose to build and launch the containers:
```bash
docker-compose up --build
```### 3. Access the Application
Once the containers are running, the Flask app will be available at `http://localhost:5000`.### Stopping the Application
To stop the containers, press `Ctrl + C` or run:
```bash
docker-compose down
```## Learning Resources
- [Flask Documentation](https://flask.palletsprojects.com/)
- [Redis Documentation](https://redis.io/)
- [Docker Documentation](https://docs.docker.com/)