IsaacFigNewton / SandoMatch

Sandwich recommendation site. Recommends a random sandwich based on preferred ingredients.
0 stars 0 forks source link

SandoMatch

Find your perfect sandwich

Sign Up Flow (1)

Sign In Flow (1)


Making changes

  1. To add new functionality, we recommend starting by copying an existing one, renaming and then altering the contents of its respective function.
  2. 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:

  1. 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:

  1. npm lint
  2. npm run dev

In packages/react-frontend:

  1. npm lint
  2. npm run dev

Sources