SandoMatch
Find your perfect sandwich
Making changes
-
To add new functionality, we recommend starting by copying an existing one, renaming and then altering the contents of its respective function.
-
After creating a new function, and before you export it to be integrated with the rest of the build, make sure you're validating the function properties similar to the following:
// Validate FilterPage props
FilterPage.propTypes = {
filters: PropTypes.shape({
include: PropTypes.array.isRequired,
exclude: PropTypes.array.isRequired
}).isRequired,
setFilters: PropTypes.func.isRequired,
applyFilters: PropTypes.func.isRequired,
};
Local Testing/Deployment Setup
Make sure that you test any changes to your local build prior to
requesting your branch be merged into main.
In the root directory:
- npm ci
Note: if the above gives you an error, try removing the package-lock.json file and running npm install
In packages/expess-backend:
- npm lint
- npm run dev
In packages/react-frontend:
- npm lint
- npm run dev
Sources