Skip to content

This backend was created for the demtimcod web project but this backend is not finished yet

Notifications You must be signed in to change notification settings

AbrorilHuda/backend-hono-build-in-project-demtimcod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage Instructions

To install dependencies:

bun install

To Migrate to prisma:

bun run db:migrate

To run:

bun run dev

To reset database prisma:

bun run db:reset

To run prisam studio

bun run db:studio

To run prisma debug

bun run db:debug

Doc API

Doc API

TOOLS

jika anda menbutuhkan string random untuk secret

jalankan perintah ini

bun generate:secret

maka akan di buatkan secara otomatis file secret.txt dan didalam akan ada string random yang bisa digunakan

memperkenalkan dc assistent

dc assistent sekarang adalah hal yang sedang saya develop untuk mempermudah kalian memanangement project ini.

untuk melihat semua command yang tersedia gunakan perintah:

bun dc help

membuat file controller folder jika tidak ada akan di buatkan folder dengan nama src/controllers dengan perintah:

bun dc make:controller <namefile>

membuat file route sama seperti controller namun file nya di simpan di routes jika tidak ada folder routes akan di buatkan src/routes:

bun dc make:route <namefile>

untuk membuat file type untuk typescript bisa menggunakan perintah:

bun dc make:type <namefile>

untuk membuat file interface untuk typescript akan di simpan di folder types jugak dengan perintah:

bun dc make:interface <namefile>

dan untuk membuat route sekaligus controller bisa menggunakan perintah:

bun dc make:route <namefile> --controller

dan itu akan otomatis terconnection route dan controller nya.

new command ✨

bun dc make:validation <namafile>

membuat file validation di dalam folder src/validation

bun dc make:service <namefile>

membuat file service di dalam folder src/services

jika ada masalah atau pun bug tinggalkan komentar di bawah ini

issues

About

This backend was created for the demtimcod web project but this backend is not finished yet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published