/star-wars-contact-form

simple easy to use contact form using ExpressJs & NodeJs

Primary LanguageJavaScriptMIT LicenseMIT

Screenshot 2022-07-09 at 23-27-31 Contact Form ExpressJs NodeJs

simple easy to use contact form using ExpressJs & NodeJs

Installation & Setup

- git clone https://github.com/elregalo/star-wars-contact-form.git
- cd star-wars-contact-form
- add your email details to .env file

Development

- npm run dev
- open your browser at type (http://127.0.0.1:8080), fill form and click send

Curl

- curl -X POST \
  'http://127.0.0.1:8080/contact' \
  --header 'Accept: */*' \
  --header 'User-Agent: Thunder Client (https://www.thunderclient.com)' \
  --header 'Content-Type: application/json' \
  --data-raw '{
 "fullNames": "John Doe",
 "email": "john@doe.com",
 "mobile": "+27000000000",
 "message": "something worked..."
}'

Author

-Moobi Kabelo(@elregalo)