mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 13:06:19 +01:00
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.31.0. - [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... 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 | ||
| LICENSE | ||
| README.md | ||
uLinkShortener
This project is the code behind u.marcus7i.net, a custom URL shortener. It uses Go, MongoDB, and Docker for quick deployment.
Prerequisites
- Go
- MongoDB database (local or remote)
- Docker & Docker Compose (optional, for containerized deployments)
Setup
- Clone the repository
- Define environment variables in the
.envfile:MONGO_URI=mongodb://<username>:<password>@<host>:<port>/<database> PORT=<desired_port>
Running Locally
Without Docker
- Install dependencies:
go mod download - Build and run:
go run cmd/api/main.go
With Docker
- Build and run with docker compose:
docker-compose -f docker-compose-build.yml up --build - Use of pre-built image:
docker compose up -d
Docker Deployment
- Build and run containers:
docker-compose up --build - The application will be available at http://localhost:5000
License
This project is licensed under the MIT License. See the LICENSE file for details.