Beautiful, responsive memorial pages with API integration
View memorial pages with different configurations:
npm run dev in the server directory.
To use this memorial template in your application:
<!-- In your HTML head -->
<link rel="stylesheet" href="memorial-template/css/memorial.css">
<!-- Before closing body tag -->
<script src="memorial-template/js/api-client.js"></script>
<script src="memorial-template/js/memorial.js"></script>
Update the API base URL in memorial.js:
const api = new ForeverFieldsAPI('https://your-api.onrender.com');
The template reads the memorial ID from URL parameters:
https://yoursite.com/memorial?id=memorial-id-here
Modify CSS variables in memorial.css to match your brand:
:root {
--sage-primary: #8B9F82;
--gold-primary: #C9A962;
--cream: #F5F1E8;
/* ... */
}
The template automatically handles:
GET /api/memorials/:idGET /api/candles/:memorialIdPOST /api/candlesGET /api/time-capsules/:memorialIdTest the full memorial CRUD flow:
# Set your access token (from magic link auth)
export ACCESS_TOKEN="your-token-here"
# Run memorial CRUD tests
npm run test:memorial
# Or directly:
node tests/memorial-crud.test.js
Tests include:
memorial-template/
├── index.html # Memorial page template
├── css/
│ └── memorial.css # Styles (Forever Fields design)
├── js/
│ ├── api-client.js # API communication layer
│ └── memorial.js # Page controller & interactions
└── demo/
└── index.html # This demo page
🌿 Forever Fields - v0.1-memorial
Made with compassion, for moments that matter.