Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[M1_TR-198] Backend for M1_TR-8 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

NiloJr-sun
Copy link
Contributor

@NiloJr-sun NiloJr-sun commented Sep 5, 2023

Related Issue

Context

  • update function for Job, Customer, and Schedule details
  • BE data validation and error handling should be applied
  • create unit tests for the job-service, job-controller, and job-update.dto
  • setup swagger/nestjs - visit localhost:4000/api to test the functionalities

Commands:

  • startup docker
    docker-compose up -d

  • double check .env file if the DATABASE_URL is correct
    DATABASE_URL="postgresql://postgres:[email protected]:5432/jms?schema=public"

  • install dependencies
    docker-compose exec server sh -c 'yarn install'

  • run prisma generate
    docker-compose exec server sh -c 'yarn run prisma generate'

  • run prisma migration
    docker-compose exec server sh -c 'yarn run prisma migrate dev'

  • test out the functions using the swagger url - localhost:4000/api

Test Executed

  • Unit Tests for Job service, Job controller, and update.dto
    • yarn test

Notes

  • Please skip checking the files inside src/models and src/api/jobs/entities directories
  • Will update the existing code formats here after the merging of the ahead prs

Screenshot

image
image
image

Nature of task

  • Feature

Risks

  • [ ]

@NiloJr-sun NiloJr-sun self-assigned this Sep 5, 2023
@NiloJr-sun NiloJr-sun marked this pull request as ready for review September 5, 2023 08:06
@jeremiahC
Copy link
Contributor

comment

@NiloJr-sun NiloJr-sun force-pushed the feature/M1_TR-198 branch 8 times, most recently from 30b4025 to c0e568c Compare September 22, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants