1. cp .env-example .env
2. Fill the Variable on .env
3. yarn install
4. yarn build
5. yarn start
- [POST] /songs => 'Simpan' [DONE]
- [GET] /songs => 'Get All' [DONE]
- [GET] /songs/{bookId} => 'Get One By ID' [DONE]
- [PUT] /songs/{bookId} => 'Update 1 By ID' [DONE]
- [DELETE] /songs/{bookId} => 'Delete 1 Books' [DONE]
- [GET] /songs/deleteAll => 'Delete all Records' [DONE] [CUSTOM]
StatusCode
400 => Gagal
500 => Gagal Sistem
201 => Sukses
200 => Sukses
404 => Tidak Ditemukan
Backend Specification
Tech Stack:
-----------
nodejs
typescript
hapijs
noneid
nodemon
pm2
sqlite3
-----------
Nama Script | Kegunaan |
---|---|
yarn dev | Menjalankan Server menggunakan Typescript, digunakan untuk proses pada saat Development |
yarn build | Generate Aplikasi dari Typescript ke Javascript |
yarn start | Menjalankan Server menggunakan file Javascript Production |