To build forms I used Formik library https://formik.org/
To send data I used Axios https://axios-http.com/docs/intro
To be able to use the project, please download:
git clone https://github.com/Przemyslaw-Pajka/HO-form.git
https://przemyslaw-pajka.github.io/HO-form/build/.
For build a production version correctly, please download all packages using npm install
, and then replace in package.json "homepage": "http://exampleURL"
.Where 'exampleURL' is, you need to replace it to the address you will be using. For example "homepage": "http://127.0.0.1:5500/HO-form/"
. Next you must type npm run
build in terminal.
To use in a development environment, typenpm start
in a terminal in the code editor
To use with Xampp, download the build folder, and then put it in the htdocs folder. Rename the build folder, e.g. to website-name, and then enter localhost/htdocs/website-name in the browser.
Node version v10.19.0 NPM Version 6.14.4