Skip to content

triantafillos/vibe-coding-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Server App

A simple Node.js Express server with basic routing and middleware.

Features

  • Express.js web server
  • JSON middleware for parsing requests
  • Health check endpoint
  • Sample API routes
  • 404 error handling
  • Development mode with nodemon

Getting Started

Prerequisites

  • Node.js (version 14 or higher)
  • npm (comes with Node.js)

Installation

  1. Install dependencies:

    npm install
  2. Start the server:

    npm start
  3. For development (auto-restart on changes):

    npm run dev

Available Endpoints

  • GET / - Welcome message
  • GET /health - Health check endpoint
  • GET /api/hello/:name - Personalized greeting (name is optional)

Example Usage

# Basic endpoint
curl http://localhost:3000/

# Health check
curl http://localhost:3000/health

# API with parameter
curl http://localhost:3000/api/hello/John

The server runs on port 3000 by default, or you can set the PORT environment variable to use a different port.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published