Web Service - Replov Docs
Skip to main content

Web Service

Public-facing HTTP applications

Public-facing applications that handle HTTP requests. Perfect for REST APIs, GraphQL, and full-stack web apps.

Perfect For

  • REST APIs (Express, FastAPI, Flask)
  • Full-stack apps (Next.js, Nuxt.js)
  • GraphQL APIs
  • Traditional web servers (Rails, Django)

Key Features

Public URL with HTTPS included

Example: Express.js API

package.jsonjson
{
"name": "my-api",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"express": "^4.18.0"
}
}
index.jsjavascript
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.json({ message: 'Hello from Replov!' });
});
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
Port Configuration
Always use process.env.PORT in your application. Replov automatically assigns a port to your service.

Environment Variables

bash
NODE_ENV=production
DATABASE_URL=postgresql://...

Deployment Process

  1. 1. Push your code to GitHub
  2. 2. Create a new Web Service in Replov
  3. 3. Select your repository and branch
  4. 4. Replov auto-detects your framework
  5. 5. Your service is live with HTTPS in 2-3 minutes
Replov automatically provisions SSL certificates and handles HTTPS for you. No configuration needed!