Use this resource during the Backend Integration stage. Adapt it to your project requirements and validate the result before production use.
Integrate forms, email sending, databases, REST APIs, authentication, and file upload workflows.
AI prompts, scripts, and code that can be copied and reused.
Use this resource during the Backend Integration stage. Adapt it to your project requirements and validate the result before production use.
A backend example for building basic REST API endpoints, request validation, response structure, and service integration.
Adapt the resource to your project background, target users, budget, deployment environment, and security requirements. Validate the result in a test environment before using it in production.
π§ Script |: 2026-07-02 # Node.js REST API ## Node.js REST API javascript const express = require('express'); const app = express(); app.use(express.json()); // API const articles = []; app.get('/api/articles', (req, res) => { res.json(articles); }); app.get('/api/articles/:id', (req, res) => { const article = articles.find(a => a.id === parseInt(req.params.id)); if (!article) return res.status(404).json({ error: 'Not found' }); res.json(article); }); app.listen(3000, () => { console.log('API server running on port 3000'); });
Use this resource during the Backend Integration stage. Adapt it to your project requirements and validate the result before production use.
A PHP form handling example for contact pages, validation, email delivery, and basic anti-spam handling.
Adapt the resource to your project background, target users, budget, deployment environment, and security requirements. Validate the result in a test environment before using it in production.
π§ Script |: 2026-07-02 # PHP ## PHP php <?php // if ($_SERVER['REQUEST_METHOD'] === 'POST') { $name = htmlspecialchars($_POST['name']?? ''); $email = filter_var($_POST['email']?? '', FILTER_VALIDATE_EMAIL); $message = htmlspecialchars($_POST['message']?? ''); if (!$email) { die(''); } $to = '[email protected]'; $subject = " $name "; $headers = "From: $email Reply-To: $email"; if (mail($to, $subject, $message, $headers)) { echo ',! '; } else { echo ',. '; } }?>