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!
npm install
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 ๐
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
๐ค Ben Holmes
- Website: https://bholmes.dev
- Twitter: @bholmesdev
- Github: @holben888
Give a โญ๏ธ if this project helped you!
This README was generated with โค๏ธ by readme-md-generator