https://github.com/mirmousaviii/dynamic-form
https://github.com/mirmousaviii/dynamic-form
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirmousaviii/dynamic-form
- Owner: mirmousaviii
- Created: 2024-05-02T19:38:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T06:44:23.000Z (about 1 year ago)
- Last Synced: 2024-05-04T07:00:22.027Z (about 1 year ago)
- Language: TypeScript
- Size: 489 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic Form
A simple Dynamic Form based on json from API.
## How to use
You can use expo to run the project on your local machine. To do this, follow the steps below:
Install dependencies
```bash
npm install
```
Start the development server
```bash
npm start
```## Sample API
The form is generated based on json from the API.Update the API URL in the `.env` file.
Sample API: https://dynamic-form.wiremockapi.cloud/api/v1
Here is a json as an example:
```JSON
{
"name": "Trailer Inspection",
"groups": [
{
"name": "Back side",
"checkpoints": [
{
"type": "string",
"name": "License Plate",
"placeholder": "ABC 123"
},
{
"type": "number",
"name": "VIN Number",
"placeholder": "1234567890"
}
]
},
{
"name": "Damages",
"checkpoints": [
{
"type": "boolean",
"name": "Tire condition",
"values": ["Ideal", "Worn out"]
},
{
"type": "boolean",
"name": "Are there any new scratches or dents?",
"values": ["Yes", "No"]
},
{
"type": "string",
"name": "Please evaluate overall condition of vehicle?",
"placeholder": "Vehicle is in ideal condition"
}
]
}
]
}```
## Screenshots

## TODO
- [x] API Call
- [x] Form Generation
- [ ] Form Validation
- [ ] Form Submission
- [ ] Performance
- [ ] Lighthouse
- [ ] Optimize code
- [ ] Documentation
- [x] README.md
- [x] Screenshots
- [ ] Storybook
- [ ] Tests
- [ ] Unit Test
- [ ] E2E Test
- [ ] Interactions by storybook
- [ ] Accessibility
- [ ] CI/CD## Feedback
Please submit an issue on GitHub if you have any feedback
## Contributing
Contributions are always welcome!
To contribute to this repository, please make a PR.
## Authors
- Mostafa Mirmousavi [@mirmousaviii](https://github.com/mirmousaviii) [https://mirmousavi.com](https://mirmousavi.com)
## License
[MIT](https://choosealicense.com/licenses/mit/)
## References
* https://reactjs.org/
* https://reactnative.dev/
* https://expo.dev/
* https://wiremock.cloud/