mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 21:16:17 +01:00
Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.17.3 to 1.17.4. - [Release notes](https://github.com/mongodb/mongo-go-driver/releases) - [Commits](https://github.com/mongodb/mongo-go-driver/compare/v1.17.3...v1.17.4) --- updated-dependencies: - dependency-name: go.mongodb.org/mongo-driver dependency-version: 1.17.4 dependency-type: direct:production update-type: version-update:semver-patch ... 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.