Use this web app on https://formhandler.xyz
This is a web app that can be connected with your static website to get the form data on your email. This can save you lot of money, because even for adding a contact form on your static portfolio website you need to create a backend server to fetch your form data.
Just follow the steps on the website https://formhandler.xyz/how-to-use/
For development, you will only need Node.js and a node package manager(npm), and mongodb installed in your environement.
-
Just go on official Node.js website and download the installer. Also, be sure to have
gitavailable in your PATH,npmmight need it (You can find git here). -
You can install nodejs and npm easily with apt install, just run the following commands.
$ sudo apt install nodejs $ sudo apt install npm -
You can find more information about the installation on the official Node.js website and the official NPM website.
If the installation was successful, you should be able to run the following command.
$ node --version
v16.13.2
$ npm --version
8.1.2
If you need to update npm, you can make it using npm! Cool right? After running the following command, just open again the command line and be happy.
$ npm install npm -g
-
Just go on official MongoDB website and download the installer.
$ git clone https://github.com/singhanubhavme/From-Handler.git
$ cd From-Handler
$ npm install && npm i nodemon -g
Create a .env file inside the Form-Handler directory, and add following lines to the file.
DB_URL=mongodb://localhost:27017/form-handler
EMAIL=YOUR EMAIL
EMAIL_PASS=PASSWORD OF YOUR EMAIL
SECRET=ANYTHING
PORT=ANY PORT YOU WANT TO USE
$ npm start