Demo of Form Template & Form GUI.
Package used for Form Builder, please visit: https://github.com/sethsandaru/vue-form-builder
Nuxt js is used for Frontend.
Lumen 8.2.4 is used for Backend API.
$ git clone https://github.com/jaygaha/nuxt-lumen-form-builder.git
$ cd nuxt-lumen-form-builder
$ docker compose up -d --build
Open http://localhost:8090 url in browser.
If you see the 502 error page, just wait a bit when npm install && npm run dev
process will be finished (Check the status with the command docker compose logs frontend-dynamic-forms
)
Nuxt application is available at the http://localhost:8090 url.
$ cd frontend
$ cp .env.example .env
create a database first.
$ docker compose exec mysql-dynamic-forms bash
$ root@aacaabf7aeba:/# mysql -u root -p
$ Enter password: [Enter password 12345678]
$ mysql> create database forms;
Lumen API is available at the http://localhost:8090/api url. It also accessible via http://localhost:8091
Renaming .env
file and migrating database tables.
$ cd backend
$ cp .env.example .env
$ cd ..
$ docker compose exec backend-dynamic-forms bash
$ root@fe5aa52e94d3:/var/www/backend# php artisan migrate
While creating Submit
button two emiting fields must
be filled.
Emitting Code
and Emitting Value
fileds should be filled with api-save-form-data
value.
While submitting the rendered form data, form data are handled with vue method.