This PR refactored the codebase from using Vue to React and included some other improvements.
The npm scripts and the build process has changed - they are mainly using what Create React App is giving us out of the box (with some slight changes)
The Dockerfile, docker-compose.yml and the Github workflows are updated accordingly to the new changes
Typescript support is ditched
We are now using autoformatting with Prettier - you can either integrate it into your IDE/text editor or run npm run prettier before you commit your changes
We have an updated .babelrc - it is using present-env and browserslist to identify to what kind of JS it needs to transpile
Most of the existing pages are still in .pug templates - the reason is that we want to continue the refactoring process iteratively while being able to implement new features in the React context
A lot of components are already refactored to React - BusinessRegister, HealthcareRegister, AboutUs, Scan, etc. - so you can use them for examples of how to approach further refactoring
Some of the logic is already encapsulated in standalone components - AddressField, PhoneNumberField
The branch is aligned with master and has everything merged and working
README.md is updated accordingly
Assets like images, fonts, css, etc are moved in the /src folder and imported in the refactored components - the old assets are still in the /public folder for legacy support
Hopefully, we can merge this is as soon as possible, so we can continue working on the new features while continuing to refactor the old components one by one in parallel.
This PR refactored the codebase from using Vue to React and included some other improvements.
npm scripts
and the build process has changed - they are mainly using what Create React App is giving us out of the box (with some slight changes)Dockerfile
,docker-compose.yml
and the Github workflows are updated accordingly to the new changesnpm run prettier
before you commit your changes.babelrc
- it is usingpresent-env
andbrowserslist
to identify to what kind of JS it needs to transpilemaster
and has everything merged and workingimages
,fonts
,css
, etc are moved in the/src
folder and imported in the refactored components - the old assets are still in the/public
folder for legacy supportHopefully, we can merge this is as soon as possible, so we can continue working on the new features while continuing to refactor the old components one by one in parallel.