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
.
Have you found this project helpful? You can give a star(⭐) to let me know, you care.
- 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:https://localhost:8888