-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If you’d like to take a more detailed look at the code to set this up, you can view it in the GitHub repo.
But what if your backend API needs to request data from a database? Well, this is easy enough to do via packages like serverless-mysql that let you initiate connections to a MySQL database from NodeJS. Add the dependency, run your queries in response to an API call in Next.js and then send the results back to the frontend (usually as JSON). Easy.
By using create-next-app you can immediately get set up with an interactive dev experience that auto-reloads code changes in your browser as you make changes. Next.js also has support for building web APIs without needing any separate API server (e.g, ASP.NET Core, Go’s net/http package). It can serve your frontend, and handle your API requests all in one.
Related posts
-
Tips from open-source: How redirect in Next.js works under the hood
-
Styling dynamic HTML content in Vue & React with TailwindCSS
-
With Makefile - Nest.js docker deployment and versioning automation
-
Deploying organization repo to Vercel with a hobby plan
-
Is purging still the hardest problem in computer science?