mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 13:06:19 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|---|---|---|
| .github | ||
| cmd/api | ||
| internal | ||
| web | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| docker-compose-build.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| 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
Using GHCR
Pull the prebuilt image:
docker pull ghcr.io/MarcUs7i/ulinkshortener:latest