Haiti-Distributed-Healthcare-System / hdhs

Haiti Distributed Healthcare System
3 stars 0 forks source link

Create React App #12

Closed abpwrs closed 4 years ago

abpwrs commented 4 years ago

We will likely want to use the create-react-app tool to start the reactjs portion of the project.

npx create-react-app hdhs

@bmitchinson is there a better way to do this if we are building it out as a PWA?

bmitchinson commented 4 years ago

Nope! CRA builds a PWA depending on the template you use but, most templates are PWA enabled.

image https://create-react-app.dev/docs/making-a-progressive-web-app/

bmitchinson commented 4 years ago

Also don't worry about service worker stuff, we'll be adding that later on. ( I'd like to investigate using easy-peasy for state management if it has good caching options -> https://github.com/ctrlplusb/easy-peasy/issues/424 )

bmitchinson commented 4 years ago

We should also make a final decision during standup today (Feb 5th) if we're using the typescript template or the javascript template. I want to use JS to move faster, but TS is probably the right decision. Can't remember which team members have experience with what.

This could influence our "shim" from PostgreSQL #18 . Wonder if there's any "shim" tools that also could generate ts typings for models automatically.