Initial Kelola Bumi website

This commit is contained in:
Wira Basalamah
2026-04-23 01:43:48 +07:00
commit 65435dd167
129 changed files with 5434 additions and 0 deletions

51
README.md Normal file
View File

@ -0,0 +1,51 @@
# Kelola Bumi Web
Website perusahaan PT Kelola Bumi Nusantara berbasis Next.js.
## Requirement
- Node.js 20 atau lebih baru
- npm
## Menjalankan lokal
```bash
npm install
npm run dev
```
Server produksi lokal:
```bash
npm run build
npm run start
```
## Environment
Salin `.env.example` menjadi `.env.local` lalu isi nilainya.
Variabel yang dipakai:
- `SMTP_HOST`
- `SMTP_PORT`
- `SMTP_SECURE`
- `SMTP_USER`
- `SMTP_PASS`
- `CONTACT_TO_EMAIL`
- `CONTACT_CAPTCHA_SECRET`
## Deploy ke server
1. Clone repository di server.
2. Buat file `.env.local`.
3. Jalankan `npm install`.
4. Jalankan `npm run build`.
5. Jalankan `npm run start`.
Untuk production, disarankan memakai process manager seperti PM2 atau systemd, dan reverse proxy seperti Nginx.
## Catatan
- Jangan commit `.env.local`.
- Folder `.next` dan `node_modules` tidak perlu di-upload ke git.