Skip to content

callumbooth/react-netlify-serverless-with-form-handlers

 
 

Repository files navigation

React + Netlify serverless Form Demo 📝

Version Twitter: bholmesdev

A demo of reading form data with serverside validation. Made possible by React and Netlify Serverless 🔹

Source code from Jason Lengstorf's eggheadio course on Netlify serverless with TS + React.

🧑‍💻 Try it out!

Install

npm install

Serve locally

You'll need a copy of Netlify's CLI to run this project locally. I'd suggest installing this as a global dependency, and starting the dev server like so:

npm i -g netlify-cli
ntl dev

You should see the project at http://localhost:8888 🚀

Run the test suites

You'll find 2 ways to run our test suites: Jest and Vitest. I used this to compare each framework's up-front configuration costs, speed, and dev ergonomics. You'll find the same set of unit + integration tests written for each under:

tests/
  jest/ ...
  vitest/ ...

To see them in action, try running some of the following:

# Run jest in "watch" mode
npm run test:jest

# Run Vitest in "watch" mode
npm run test:vitest

# Run jest normally
npx jest

# Run Vitest normally
npx vitest run

Author

👤 Ben Holmes

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.1%
  • CSS 9.0%
  • JavaScript 5.2%
  • HTML 2.7%