This is the backend for the contact form. It saves submissions as JSON files in the client/ folder.
- Push this
backend/folder to a new GitHub repository. - Go to Render and create a new Web Service.
- Connect your GitHub repo.
- Set the following settings:
- Environment: Node
- Build Command:
npm install - Start Command:
npm start
- Deploy!
Your backend will be live at a public URL (e.g., https://your-backend.onrender.com).
- POST
/contact- Body:
{ name, email, message } - Saves a JSON file in
client/with the submission.
- Body: