Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
30c4308
Convert to BHVR with AI Help
mdestafadilah Feb 10, 2026
524c8b5
Refactore
mdestafadilah Feb 10, 2026
ec09ad9
Added Legacy Link
mdestafadilah Feb 10, 2026
1038076
feat: Introduce Dockerization for the application with a multi-stage …
mdestafadilah Feb 10, 2026
9d9b154
feat: Introduce homepage with URL shortening input form component.
mdestafadilah Feb 10, 2026
17c8554
Merge branch 'main' of https://github.com/rsuppersahabatan/pendekin-url
mdestafadilah Feb 10, 2026
35e9d40
Gak Kepake
mdestafadilah Feb 10, 2026
0afac55
Typo
mdestafadilah Feb 10, 2026
333be2c
Update Readme
mdestafadilah Feb 10, 2026
2c73d9e
Refactor: Reorder Dockerfile steps to copy source before dependency i…
mdestafadilah Feb 10, 2026
86201a7
HONO bukan HOMO!
mdestafadilah Feb 10, 2026
2ee167d
feat: Implement core URL shortening functionality with client-side fo…
mdestafadilah Feb 10, 2026
4f97a8d
https://bhvr.dev/deployment/server/cloudflare-workers
mdestafadilah Feb 10, 2026
ac5247b
ngixn.conf docker
mdestafadilah Feb 10, 2026
30e4155
Fix https://bhvr.dev/deployment/server/cloudflare-workers
mdestafadilah Feb 10, 2026
85a6c86
Fixed
mdestafadilah Feb 10, 2026
ee70d05
Fix #1
mdestafadilah Feb 10, 2026
48a5793
Fix #2
mdestafadilah Feb 10, 2026
c482c07
Request Workers
mdestafadilah Feb 10, 2026
589f3cb
Fix #3
mdestafadilah Feb 10, 2026
e73c790
[update] Dockerfile bun install
taofikanwart Feb 10, 2026
f7bcc83
[update] url
taofikanwart Feb 10, 2026
8d98539
[update] variabel ke env
taofikanwart Feb 10, 2026
a4fba7d
[update] URL Shortener API
taofikanwart Feb 10, 2026
3c3dbf0
Remove CloudPeler
mdestafadilah Feb 10, 2026
9088721
Redirecting... design by AI
mdestafadilah Feb 10, 2026
e14992f
[update] bun install
taofikanwart Feb 11, 2026
7aab486
[update] postman collection untuk api
taofikanwart Feb 11, 2026
ed374dd
remove lock
mdestafadilah Feb 11, 2026
4a53069
Fix #5
mdestafadilah Feb 11, 2026
5d10ec2
feat: Add server-specific TypeScript configuration.
mdestafadilah Feb 12, 2026
1b3b5b1
Back to basic loading
mdestafadilah Feb 12, 2026
765e607
Loading keliatan...
mdestafadilah Feb 12, 2026
aebed0c
feat: establish client-side routing for authentication and URL redire…
mdestafadilah Feb 12, 2026
2062e06
feat: Add user registration page and integrate it into the applicatio…
mdestafadilah Feb 12, 2026
1e2c082
chore: Update turbo to version 2.8.7 and add `--force --no-cache` fla…
mdestafadilah Feb 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules
.git
.gitignore
*.md
.turbo
.env
.env.local
dist
build
coverage
.vscode
.idea
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MongoDB Configuration
MONGO_INITDB_ROOT_USERNAME=admin
MONGO_INITDB_ROOT_PASSWORD=password123
MONGO_PORT=27017

# Server Configuration
DB_URL=mongodb://admin:password123@mongodb:27017/pendekin-url?authSource=admin
BASEURI=http://localhost:80
SERVER_PORT=3000

# Client Configuration
CLIENT_PORT=80
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# bhvr/.gitignore
# dependencies
node_modules
.pnp
.pnp.js
out

# testing
coverage

# production
dist
build

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# editor directories and files
.idea
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Bun
bun.lockb

# Turbo
.turbo
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Contributing to create-bhvr

First off, thank you for considering contributing to `bhvr`! This is a true open source project and we welcome community ideas and contributions. In order to keep things clean please follow the contributing guidelines below.

## How Can I Contribute?

### Reporting Bugs

If you find a bug, please make sure the bug has not already been reported by searching on GitHub under [Issues](https://github.com/stevedylandev/bhvr/issues). If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/stevedylandev/bhvr/issues/new). Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.

### Suggesting Enhancements

If you have an idea for an enhancement, please make sure the enhancement has not already been suggested by searching on GitHub under [Issues](https://github.com/stevedylandev/bhvr/issues). If you're unable to find an open issue addressing the suggestion, [open a new one](https://github.com/stevedylandev/bhvr/issues/new). Be sure to include a **title and clear description** of the enhancement you're suggesting.

### Submitting a Pull Request

1. Fork the repository and create your branch from `main`.
2. Run `bun install` to install the dependencies.
3. Make your changes.
4. Run `bun run build` to make sure your changes build correctly.
5. Issue that pull request!

## License

By contributing, you agree that your contributions will be licensed under its MIT License.
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Stage 1: Prune
FROM oven/bun:1.2.4 AS pruner
WORKDIR /app
COPY . .
RUN bun x turbo prune server --docker

# Stage 2: Build
FROM oven/bun:1.2.4 AS builder
WORKDIR /app

# 1. Salin hasil prune
COPY --from=pruner /app/out/json/ .

# 2. FIX: Hapus referensi "./client" dari package.json agar Bun tidak mencarinya
# Serta hapus lockfile lama agar tidak terjadi konflik resolusi
RUN sed -i '/"\/client"/d' package.json && \
sed -i '/"\.\/client"/d' package.json && \
rm -f bun.lock bun.lockb

# 3. Install dependencies
# Sekarang Bun hanya akan melihat workspace yang benar-benar ada (server & shared)
RUN bun install --ignore-scripts

# 4. Copy source code asli
COPY --from=pruner /app/out/full/ .
COPY turbo.json tsconfig.json ./

# 5. Build
RUN bun x turbo run build --filter=server...

# Stage 3: Production
FROM oven/bun:1.2.4-slim
WORKDIR /app

COPY --from=builder /app/node_modules ./node_modules
# Gunakan "find" jika Anda tidak yakin dengan lokasi dist-nya
COPY --from=builder /app/server/dist ./server/dist
COPY --from=builder /app/shared/dist ./shared/dist
COPY --from=builder /app/package.json ./

EXPOSE 5000
CMD ["bun", "run", "server/dist/index.js"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Steve Simkins

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading