Demo: Resizer.iRazz.lol
This is a Next.js 15 project that provides a seamless image resizing experience. Users can upload images, resize them to specified dimensions or presets, and download the resized images.
Before you begin, ensure you have the following installed:
- Node.js (version 20 or higher)
- npm (comes with Node.js)
- Upstash Redis Database (needed for caching and rate limiting)
- Docker (optional, for containerization)
- Docker Compose (optional, for container orchestration)
To run the application in a Docker container using Docker Compose, follow these steps:
-
Create a
docker-compose.yml
file with the following content:services: resizer: image: irazvan2745/resizer:latest ports: - "3000:3000" environment: - UPSTASH_REDIS_URL=https://novel-titanic-xxxxx.upstash.io - UPSTASH_REDIS_TOKEN=AXB9AAIxxxxxxxxxxxxxxxx
-
Start the Docker container in detached mode:
docker compose up -d
The application will be available at
http://localhost:3000
.
To stop the Docker container, run:
docker compose down
- Clone the repository:
git clone https://github.com/yourusername/resize-irazz.git
cd resizer-irazz
-
Install the dependencies:
npm install
To start the development server, run:
npm run dev