-
Fork and clone this repo
-
Navigate to cloned repository
-
run
yarn install
-
run
yarn start
to start development server -
contacts form will post to firebase database and you can visit all contacts at this link or make a get request at the same link:
-
Pages are seeded inside firebase storage and can be visited by making a get request at this link:
- Backend is deployed to google cloud / firebase
- Link to backend
- GET https://us-central1-midwestern-api.cloudfunctions.net/api/pages/ {home} or {contact} can be home or contact to get home or contact page
- GET https://us-central1-midwestern-api.cloudfunctions.net/api/pages to get all pages
- GET https://us-central1-midwestern-api.cloudfunctions.net/api/contacts to get all contacts currently saved in database
- POST https://us-central1-midwestern-api.cloudfunctions.net/api/contacts to SAVE a new contact
- Accepts a form data object with all the key/value paris from the form
Example payload:
{ "first_name": "First", "last_name": "Last", "title": "Title", "email": "[email protected]", "message": "Message content text" }
- Accepts a form data object with all the key/value paris from the form
Example payload: