- First make sure Docker is installed. For windows, you can install Docker Desktop. For Linux, you can install Docker and Docker compose
- Copy env.example and rename it to .env
- Then in the root folder type the command
docker-compose up --build - If Access Denied occurs add
sudobefore command up and build - If it has been successfully deployed, the container will run and be visible on the Docker Desktop or can be checked using
docker-compose ps
yarn prisma studio-> for showing database like phpmyadminyarn prisma migrate reset-> Reseting all table and inserted database to 0yarn prisma migrate dev-> commiting migrate database to migrate historyyarn prisma migrate deploy-> deploying latest migrate to database schemayarn db push-> pushing changes in Schema to databaseyarn db seed-> running seederyarn run seed-> Pushing changes in shcema and push seeder to databaseyarn run dev-> starting serveryarn run dev:server-> Starting server with nodemon. So every changes will restart the server. Best for deploying when deveolpment begun
- Generate ERD Diagram
- Express Initialize
- Docker Init
- TypeScript Init and configure
- Init Prisma
- Translate ERD into Prisma code
- Adding tabel Gizi Makanan based on TKPI Dataset
- Making Seeder for tabel Gizi
- Testing Multer
- Configure Seeder for :
- Default Username and Password for Login
- AKG Tabel based on Kemenkes Standard
- Init JWT Auth
- Making middleware for JWT
- JWT verification time handling -> Reject if Expired to Login Page
- Making Authentication API
- Login API with token -> auth.ts
- Change Password API -> auth.ts
- User API
- Register API -> user.ts
- Return detail profile
- Update Profile Details
- Anak API
- Create Anak
- Update Anak
- Delete Anak
- Read Daftar Anak
- Read Anak Detail by Id
- History Stunting
- Input Data with OpenCV JS
- Input Data Manual
- Delete History
- Read History Stunting All
- Read History Stunting by Date
- History Gizi
- Input History Gizi with TFLite Model = input Picture
- Read History Gizi All
- Read History Gizi by Date
- Delete Histery Gizi by Id
- Standard Gizi
- Read Standard Gizi by Umur
- Create Standard Gizi (Not include in app just for debugging purpose, in case needed in future)
- Delete Standard Gizi (Not include in app just for debugging purpose, in case needed in future)
- Update Standard Gizi (Not Include in app just for debugging purpose, in case needed in future)
- Adding ERD for Nutrition each classes in ERD and Prisma