Skip to content

iRazvan2745/resizer

Repository files navigation

Resize Iraz

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.

Getting Started

Prerequisites

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)

Installation

Using Docker Compose (Recommended)

To run the application in a Docker container using Docker Compose, follow these steps:

  1. 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
  2. Start the Docker container in detached mode:

    docker compose up -d

    The application will be available at http://localhost:3000.

Stopping the Application

To stop the Docker container, run:

docker compose down

Using npm (NOT RECOMMENDED) docker is the best :p

  1. Clone the repository:
git clone https://github.com/yourusername/resize-irazz.git
cd resizer-irazz
  1. Install the dependencies:

    npm install

Running the Application

To start the development server, run:

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published