Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.62 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.62 KB

jamstack-subscription-form

Let's build a subscription form using the Jamstack concept. Netlify comes with the form handling capability that allows you to achieve the power of Jamstack for form handling.

With this project, we will build a simple(yet powerful) Subscription form and submit it using the Netlify forms capability. We will use the Netlify Functions to handle the form data and store it in a serverless data store called Fauna.

Want to Motivate?

Have you found this project helpful? You can give a star(⭐) to let me know, you care.

Many Thanks to all the Stargazers who has supported this project with stars(⭐)

Stargazers repo roster for @atapas/jamstack-subscription-form

How to run this project?

  • Clone this repository and change the directory to jamstack-subscription-form.
  • Install netlify-cli. Use this link to create an account with Netlify and install the CLI tool.
  • Create an account with Fauna. Create a database. Upload the schema and get the Server Key.
  • Create a file called, .env and place the server key as,
 FAUNA_API_SECRET=<FAUNA_SERVER_KEY>
  • Install dependencies
yarn install

# or npm install
  • Install dependencies for the netlify function
yarn script

# or npm script
  • Run the project locally,
netlify dev

The user interface should be accissable at http://localhost:8888