Find a file
dependabot[bot] ec50bba19b
Bump golang.org/x/crypto from 0.26.0 to 0.31.0
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>
2025-04-02 10:30:34 +00:00
.github Removed python files 2025-04-02 12:19:29 +02:00
cmd/api Rewritten in go 2025-04-02 08:37:01 +02:00
internal Rewritten in go 2025-04-02 08:37:01 +02:00
web Fixed website analytics update 2025-04-02 09:23:14 +02:00
.dockerignore Initial commit 2025-02-21 01:23:57 +01:00
.env.example Updated .env.example 2025-04-02 09:43:34 +02:00
.gitignore Initial commit 2025-02-21 01:23:57 +01:00
docker-compose-build.yml Updated docker-compose-build.yml 2025-04-02 08:46:50 +02:00
docker-compose.yml Fixed typo in docker-compose.yml 2025-02-25 00:06:03 +01:00
Dockerfile Fixed website analytics update 2025-04-02 09:23:14 +02:00
go.mod Bump golang.org/x/crypto from 0.26.0 to 0.31.0 2025-04-02 10:30:34 +00:00
go.sum Bump golang.org/x/crypto from 0.26.0 to 0.31.0 2025-04-02 10:30:34 +00:00
LICENSE Updated README.md 2025-04-02 12:19:29 +02:00
README.md Updated README.md 2025-04-02 12:19:29 +02:00

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

  1. Clone the repository
  2. Define environment variables in the .env file:
    MONGO_URI=mongodb://<username>:<password>@<host>:<port>/<database>
    PORT=<desired_port>
    

Running Locally

Without Docker

  1. Install dependencies:
    go mod download
    
  2. Build and run:
    go run cmd/api/main.go
    

With Docker

  1. Build and run with docker compose:
    docker-compose -f docker-compose-build.yml up --build
    
  2. Use of pre-built image:
    docker compose up -d
    

Docker Deployment

  1. Build and run containers:
    docker-compose up --build
    
  2. The application will be available at http://localhost:5000

License

This project is licensed under the MIT License. See the LICENSE file for details.