Skip to content

digitalocean/sample-node-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Node.js Web Service

A simple Express.js web service for benchmarking and testing purposes.

Features

  • Health check endpoint
  • REST API endpoints
  • JSON responses
  • Error handling
  • Server statistics

Endpoints

  • GET / - Welcome message with endpoint list
  • GET /health - Health check
  • GET /api/users - Sample users data
  • GET /api/stats - Server statistics
  • POST /api/echo - Echo back request data

Running Locally

npm install
npm start

The server will start on port 3000 (or PORT environment variable).

Deployment

This service is designed to work with DigitalOcean App Platform and other cloud providers.

About

Simple Node.js web service for benchmarking DigitalOcean App Platform

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published