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-195] Backend for M1_TR-9 #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

arden-dave-sun
Copy link
Contributor

@arden-dave-sun arden-dave-sun commented Sep 6, 2023

Related Issue

Context

  • create functions (services and controllers) for the following feature
    • fetching of job type and person in charge
    • fetching of calendar events based from job schedule

Commands

  • run the following
docker-compose up -d
docker-compose exec server sh -c 'yarn run prisma generate'
docker-compose exec server sh -c 'yarn run prisma migrate dev'
docker-compose exec server sh -c 'yarn run seed'
  • go to http://localhost:4000/api for api checking or alternatively, postman

API Endpoints

Job

  • findAllTypes- POST - localhost:4000/api/job/types
  • findAllPersonInCharge- GET - http://localhost:4000/api/job/personInCharge

Schedule

  • getCalendarEvents- GET - http://localhost:4000/api/schedule/calendar

Test Executed

  • Unit Test for Job and Schedule
    • yarn test
  • Functional Test

Screenshot

  • Schedule calendar events
    image

  • Job type
    image

  • Person in Charge
    image

Nature of task

  • New Implementation
  • Bug
  • Refactoring

Risks

  • Affecting other functions

@arden-dave-sun arden-dave-sun self-assigned this Sep 6, 2023
@arden-dave-sun arden-dave-sun force-pushed the feature/M1-TR-195 branch 4 times, most recently from d49b988 to 36367e6 Compare September 11, 2023 06:15
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