Thank you for your interest in contributing to the Formik Form Builder project!
Follow the steps below to set up the project and start contributing.
Use the following command to clone the repository to your local machine:
git clone https://github.com/Anthena-Group/ffb-web.gitcd ffb-web
Make sure you have Node.js and pnpm installed. Then install the project dependencies by running:
pnpm install -r
Then, build all workspaces:
pnpm -r buildTo start contributing, run both the example app and the documentation site locally.
This runs the React application that shows live examples of components like TextInput,usernameInput etc.
cd apps/examples
pnpm devIn a new terminal window or tab, run the documentation site:
cd apps/docs
pnpm startOnce both the example app and docs site are running:
-
Navigate to the respective folders inside the
appsdirectory:apps/examples: For React example componentsapps/docs: For Docusaurus documentation files
-
You can add or modify components, create examples, or write documentation.
Make sure to follow the folder structure and naming conventions used in the project.
Example: To add a new form field component, you might:
- Add a React demo in
apps/examples/src/Demo/ - Add documentation in
apps/docs/docs/components/ - Update the sidebar in
apps/docs/sidebars.ts
Once you've made your changes, follow these steps to commit and push your work:
git add .
git commit -m "Added new component and updated documentation"
git push origin your-branch-name