Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

3dmind/test-form-validation

Repository files navigation

Form validation with Formik and folktale.

Project setup

Install all project dependencies.

npm install

Setup the environment.

  1. Create the file .env.local in the root of the project.
  2. Add the key APP_API_URL
  3. Let key point to a local or remote mock API server.

Example:

APP_API_URL=https://loremipsum.x.pipedream.net/api

Yor mock API server must provide an /users endpoint.

Using Mockoon to setup the environment

You can use Mockoon to provide such mock API, for example.

  1. Download and install the app.
  2. Select Tools > Import all environments from file in the Mockoon app.
  3. Import the mockoon.json file from project's directory.
  4. Start the server by clicking the play button.
  5. Create the .env.local file in the root of the project.
  6. Add APP_API_URL=http://localhost:3001/api to this file.

Start the example app

Use npm run start to build and serve the example application.

About

Form validation with Formik and folktale.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published