food-oasis icon indicating copy to clipboard operation
food-oasis copied to clipboard

Add typescript to backend app

Open hanapotski opened this issue 2 years ago • 5 comments

Instructions

  • pick files from the controllers, services and routes folders and add your initials to it along with a 🍔/🌭 icon so we'll know which files are currently being worked on
  • checkout this branch
  • create a new branch - 1248-add-types-<filename>
  • change the file extensions to .ts
  • add types
  • create a PR pointing to 1248-install-typescript

Note:

🍔 - in progress 🌭 - done

controllers

  • [x] account-controller.js 🌭 HZ, VW
  • [x] category-controller.js 🌭 NS
  • [ ] distance-controller.js 🍔 NS
  • [x] email-controller.js 🌭 NA
  • [ ] esri-controller.js 🍔 QZ
  • [ ] export-controller.js 🍔 HZ
  • [ ] faq-controller.js 🍔 RF
  • [ ] import-controller.js 🍔 HZ
  • [ ] load-controller.js
  • [x] logins-controller.js 🌭 VW
  • [x] neighborhood-controller.js 🌭 JD
  • [x] parent-organization-controller.js 🌭 HZ
  • [ ] stakeholder-best-controller.js
  • [ ] stakeholder-controller.js
  • [ ] stakeholder-log-controller.js
  • [x] suggestion-controller.js 🌭 NS
  • [x] tag-controller.js 🌭 NA
  • [x] tenant-router.js 🌭 VW

import

  • [ ] lapl-food-resources-scrape.js 🍔 HZ

routes

  • [x] account-router.js 🌭 HZ, VW
  • [x] category-router.js 🌭 NS
  • [ ] distance-router.js 🍔 NS
  • [x] email-router.js 🌭 NA
  • [ ] esri-router.js 🍔 QZ
  • [ ] export-router.js 🍔 HZ
  • [ ] faq-router.js
  • [ ] import-router.js 🍔 HZ
  • [x] index.js 🌭 NA
  • [ ] load-router.js
  • [x] logins-router.js 🌭 VW
  • [x] neighborhood-router.js 🌭 JD
  • [x] parent-organization-router.js 🌭 HZ
  • [ ] stakeholder-best-router.js
  • [ ] stakeholder-log-router.js
  • [ ] stakeholder-router.js
  • [x] suggestion-router.js 🌭 NS
  • [x] tag-router.js 🌭 NA
  • [x] tenant-router.js 🌭 VW

service

  • [x] account-service.js 🌭 HZ, VW
  • [x] category-service.js 🌭 NS
  • [ ] db.js
  • [ ] distance-service.js 🍔 NS
  • [ ] EmailTemplate.js 🌭 QZ
  • [ ] esri-service.js 🍔 QZ
  • [ ] faq-service.js
  • [ ] import-constants.js 🌭 QZ
  • [ ] import-service.js 🍔 HZ
  • [ ] import-utils.js 🍔 QZ
  • [ ] load_211.js
  • [ ] load-lapl-food-resources-service.js 🍔 HZ
  • [x] logins-service.js 🌭 VW
  • [x] neighborhood-service.js 🌭 JD
  • [x] parent-organization-service.js 🌭 HZ
  • [ ] postgres-pool.js
  • [ ] postgres-utils.js 🌭 QZ
  • [x] sendgrid-service.js 🌭 NA
  • [ ] stakeholder-best-service.js
  • [ ] stakeholder-log-service.js
  • [ ] stakeholder-service.js
  • [x] suggestion-service.js 🌭 NS
  • [x] tag-service.js 🌭 NA
  • [x] tenant-service.js 🌭 VW

middleware

  • [ ] authenticate.js 🍔 QZ
  • [ ] jwt-session.js

hanapotski avatar Jun 25 '22 23:06 hanapotski

Hi @hanapotski Please correct me if I'm wrong, by saying "installing typescript" you mean installing typescript vscode extension, right

Nechir-89 avatar Jul 23 '22 15:07 Nechir-89

@Nechir-89 you can just branch off from this branch https://github.com/hackforla/food-oasis/pull/1258

That branch has typescript installed 👌

hanapotski avatar Jul 23 '22 15:07 hanapotski

Thanks for letting me know, I wasn't able to see the branch in the branch list at first, so here is what I did to see it:

  • I ran ($git fetch origin) // to get all remote branches
  • and then ($git checkout 1248-install-typescript) to switch the branch

Nechir-89 avatar Jul 23 '22 16:07 Nechir-89

@Nechir-89 did you get a chance to work on the faq-controller.js?

qiqicodes avatar Oct 29 '22 00:10 qiqicodes

@qiqicodes I think it has been assigned to RF, however the faq-router and faq-service are still available.

Nechir-89 avatar Oct 30 '22 05:10 Nechir-89

@Nechir-89 afaik RF is not working on faq-controller.js, I will add types to all of the faq files in a PR.

qiqicodes avatar Oct 31 '22 00:10 qiqicodes