UNPKG

ringflow

Version:

Ringflow simplifies communication with virtual phone numbers and smart call management for businesses and individuals.

31 lines (25 loc) 850 B
// Assuming you're using Express.js for your Node.js server const express = require('express'); const app = express(); // Sample dynamic data (image URLs) const dynamicData = { paragraph1Image: 'https://via.placeholder.com/500x300', paragraph2Image: 'https://via.placeholder.com/500x300', featureCardsImages: [ 'https://via.placeholder.com/300x200', 'https://via.placeholder.com/300x200', 'https://via.placeholder.com/300x200' ] }; // Set EJS as the view engine app.set('view engine', 'ejs'); // Serve static files (like images, styles, etc.) app.use(express.static('public')); // Route to render homepage app.get('/', (req, res) => { res.render('index', { data: dynamicData }); }); // Start the server app.listen(3000, () => { console.log('Server is running on http://localhost:3000'); });