feat: testing contact form features
This commit is contained in:
28
README.md
28
README.md
@@ -59,9 +59,33 @@ npm run dev
|
||||
|
||||
```
|
||||
|
||||
## Contact Form Setup
|
||||
|
||||
### Frontend env
|
||||
Create `.env` in the project root:
|
||||
|
||||
```bash
|
||||
VITE_CONTACT_API_URL=/api/contact
|
||||
VITE_TURNSTILE_SITE_KEY=your_turnstile_site_key
|
||||
```
|
||||
|
||||
### Backend API
|
||||
The contact backend lives in `contact-api/`.
|
||||
|
||||
```bash
|
||||
cd contact-api
|
||||
npm i
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Create `contact-api/.env` from `contact-api/.env.example` and set your real Turnstile + SMTP credentials.
|
||||
|
||||
### VPS service files
|
||||
- systemd unit template: `ops/jody-contact-api.service`
|
||||
- Nginx reverse proxy snippet: `ops/nginx-contact-api.conf`
|
||||
|
||||
## Author
|
||||
|
||||
### Jody Holt
|
||||
### Frontend Developer • Passion Pioneer
|
||||
#### [GitHub](https://github.com/Ricearoni1245) • [LinkedIn](https://www.linkedin.com/in/jody-holt-9b19b0256) • [Email](mailto:jholt1008@gmail.com)
|
||||
|
||||
#### [GitHub](https://github.com/Ricearoni1245) • [LinkedIn](https://www.linkedin.com/in/jody-holt-9b19b0256)
|
||||
|
||||
Reference in New Issue
Block a user