Hanya project personal untuk tugas Uji Kompetensi Keahlian selama saya bersekolah di "SMK Merdeka Bandung". Backend ini dibuat menggunakan Adonis.js versi 4.1.0 🔥🔥
git clone https://github.com/aldinp16/backend-table-service.git
- Enter root folder and install package dependency
cd backend-table-service && npm install
- Copy .
env
file and set up env variablemv .env.example .env
- Run Migration
node ace migration:run
- Run server
node server.js
Default database is mysql, but you can change any database in this list
- Run seeder
node ace seed
- Run test
npm test
- Linter check
npm lint
- Fix lint
npm lint:fix
Password | Role | |
---|---|---|
[email protected] | administrator | administrator |
[email protected] | waiter | waiter |
[email protected] | kasir | kasir |
[email protected] | owner | owner |
[email protected] | pelanggan | pelanggan |
For more about role authorization endpoint, check file start/routes.js