A Flask-based link shortener application.
- Docker
- Docker Compose
Create a .env file in the root directory with the following variables:
FLASK_SECRET_KEY=your_secret_key
ADMIN_PASSWORD=your_admin_password
TWOFACTOR_SECRET_KEY=your_2fa_secret
DATABASE_HOST=your_db_host
DATABASE_NAME=your_db_name
DATABASE_USER=your_db_user
DATABASE_PORT=your_db_port
DATABASE_PASSWORD=your_db_password
RECORDS_PER_PAGE=3The application runs in production mode by default. To run it:
- Clone the repository:
git clone <repository-url>
cd link-shortener- Build the application:
docker build -t link-shortener .- Access the application at
http://localhost:5000
To run the application in development mode with hot-reloading and debug features:
- Start the application:
docker-compose up-
Access the application at
http://localhost:5000 -
Stop the application:
docker-compose down