Skip to content

project-anya/CloudComputing

Repository files navigation

Backend Stunting Project

How to Run this Project

  1. First make sure Docker is installed. For windows, you can install Docker Desktop. For Linux, you can install Docker and Docker compose
  2. Copy env.example and rename it to .env
  3. Then in the root folder type the command docker-compose up --build
  4. If Access Denied occurs add sudo before command up and build
  5. 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

Usefull CLI Command for this project

  • yarn prisma studio -> for showing database like phpmyadmin
  • yarn prisma migrate reset -> Reseting all table and inserted database to 0
  • yarn prisma migrate dev -> commiting migrate database to migrate history
  • yarn prisma migrate deploy -> deploying latest migrate to database schema
  • yarn db push -> pushing changes in Schema to database
  • yarn db seed -> running seeder
  • yarn run seed -> Pushing changes in shcema and push seeder to database
  • yarn run dev -> starting server
  • yarn run dev:server -> Starting server with nodemon. So every changes will restart the server. Best for deploying when deveolpment begun

Todo List

  • 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

Postman Documentation

https://www.postman.com/avei20/workspace/project-anya/collection/13201462-a0cb52fe-0a1b-47d4-8eba-886ccb9d95eb?action=share&creator=13201462&ctx=documentation

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •