mirror of
https://github.com/Kizuren/uLinkShortener.git
synced 2025-12-21 13:06:19 +01:00
| .github | ||
| public | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| biome.json | ||
| bun.lock | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
µLinkShortener v2
This project is the code behind u.kizuren.dev, a custom URL shortener. It uses Next.JS, MongoDB, and Docker for quick deployment.
Prerequisites
- bun (optional, for development)
- Docker & Docker Compose
Setup
- Clone the repository
- Define environment variables in the
.envfile (mongo connection string is not needed when using docker):MONGO_URI=mongodb://<username>:<password>@<host>:<port>/<database> MONGO_DB_NAME=<database> NEXTAUTH_SECRET=VERY_SECURE_SECRET NEXTAUTH_URL=http://localhost:3000
Running Locally
Without Docker
- Install dependencies:
bun i - Build and run:
bun run build bun run start
With Docker
docker compose up -d
docker compose up --build
The application will be available at http://localhost:3000
License
This project is licensed under the MIT License. See the LICENSE file for details.