Skip to content

HiccupsRaven/ingetya

Repository files navigation

INGETYA.COM

Nama projectnya belum dipikirin

Instal *

Sementara pake NPM aja (bisa via terminal)

npm install

Important

Plis instal nodemon, boleh secara global ataupun devdeps

# Global
npm i -g nodemon

# Local DevDeps
npm i -D nodemon

Inisialisasi *

Jalanin sekali setiap setelah update dari repo atau/dan instalasi deps. Berfungsi buat ngecek file typescript dan generate beberapa config di ./config.

npm run init

Setelah config tergenerate, edit dulu bagian ./config/db.json.

{
  // false - kalo kamu ga instal mongodb
  // true - ya kalo dah instal lah kocak
  "MONGODB_INSTALLED": false
}

Lanjut ke ./config/webhook.js

{
  // string/null - id grup yang dipake buat notifikasi orderan, log, dan akitivitas website
  "chat_id": null

  // MarkdownV2/Markdown/HTML - format teks yg mo dikirim ke group chat
  "parse_mode": "MarkdownV2",

  // boolean - batesin forward, mention, dan copy url chat
  "protect_content": true,

  // boolean - biar gaada push notification
  "disable_notification": true
}

Run mode dev

Buka terminal dengan 2 tabs atau buka langsung 2 terminal kalo ga punya fitur multi-tab

1. Watch build

ext: .ts .json .scss .ejs .html ngejagain folder ./frontend

npm run dev:build

2. Watch server changes

ext: .ts ngejagain folder ./backend

Tip

Posisi udah instal nodemon

npm run dev:start

Run mode gila

Yakin ga yakin gas aja

Build dulu

Udah otomatis generate hash di filename hasil bundle biar ga pake cache lama

npm run build

Server

Batesin max penggunaan cpu dan ram sendiri

Via PM2 x NPM (VPS)

Biar dibantu npm asal vm-mu mantap

pm2 start npm --name "ingetya-app" --max-memory-restart 8G -- start

Via PM2 mode hemat (Shared VPS)

Cek penggunaan resource manual

pm2 start ./dist/server.js --name "ingetya-app" --max-memory-restart 4G -- start

Via NPM (lokal)

npm run start

TO-DO

  • banyak anjenk

About

Susah banget nentuin nama domainnya kocak. Gwejh cari domain udah pada kepake. So sad.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages