Combining React, Material-UI and Contentful
Started out with Material Kit React
- clone or get a copy of repo
- copy
.env.EXAMPLE
to.env
and change values in the file - import the model and example content as described below
npm i
npm start
The contentful model to use can be found in contentful-model. The mode-file consist of some example data.
- copy
ctf-config.EXAMPLE.json
toctf-config.json
and change values in the file - imoprt the data with
contentful space import --content-file contentful-model.json --config ctf-config.json
(add--content-model-only
if you just want the model and no data)
This requires Contentful CLI. Please see https://www.contentful.com/developers/docs/tutorials/cli/import-and-export/ for further reference
Submit formdata to Firebase and send form-submit-confirmation as mail using Sendgrid and sendgrid-gateway
An example can be found on url /form
, backed by /src/views/Components/FormPage/FormPage.jsx
The site is deployed and running in Netlify. Please browse to https://react-material-contentful.netlify.app/ to test it.