mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 13:06:19 +01:00
| static | ||
| template | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| README.md | ||
| requirements.txt | ||
| server.py | ||
uLinkShortener
This project is the code behind u.marcus7i.net, a custom URL shortener. It uses Flask, MongoDB, and Docker for quick deployment.
Prerequisites
- Python
- MongoDB database (local or remote)
- Docker & Docker Compose (optional, for containerized deployments)
Setup
- Clone the repository
- Create a virtual environment (optional):
python -m venv env source env/bin/activate # Linux/Mac env\Scripts\activate # Windows - Install dependencies:
pip install -r requirements.txt - Define environment variables in the
.envfile:MONGO_URI=mongodb://<username>:<password>@<host>:<port>/<database>
Running Locally
- Start MongoDB
- Run:
python server.py - Access the app at http://localhost:5000
Docker Deployment
- Build and run containers:
docker-compose up --build - The application will be available at http://localhost:5000