GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - tomBold/SimpleHttpServer: SimpleHttpServer

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
scripts
scripts
 
 
src
src
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
docker-compose.yml
docker-compose.yml
 
 
jest.config.js
jest.config.js
 
 
nginx.conf
nginx.conf
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
test-report.json
test-report.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

๐Ÿš€ Simple HTTP Server

CI Tests Coverage Build Status TypeScript Node.js Express Jest ESLint License

A modern, well-tested TypeScript + Node.js REST API built with Express, featuring comprehensive testing, linting, and CI/CD pipeline.

โœจ Features

  • TypeScript - Full type safety and modern JavaScript features
  • Comprehensive Testing - 9 passing tests with Jest and Supertest
  • Code Quality - ESLint configuration for consistent code style
  • CI/CD Ready - GitHub Actions workflow for automated testing
  • Docker Support - Containerized deployment with Docker
  • Security - Automated security audits and dependency checks
  • Health Monitoring - Built-in health check endpoints
  • RESTful API - Clean, intuitive API design

๐Ÿงช Testing

The project includes comprehensive test coverage:

# Run all tests
npm test

# Run tests with coverage
npm run test:coverage

# Run tests in watch mode
npm run test:watch

Test Results:

  • โœ… 9 tests passing
  • โœ… 2 test suites
  • โœ… User API tests
  • โœ… Task API tests

๐Ÿณ Docker Support

# Build Docker image
docker build -t simple-http-server .

# Run with Docker Compose
docker-compose up

# Run in production mode
docker-compose -f docker-compose.yml up -d

๐Ÿ”ง Development

Prerequisites

  • Node.js 18.x or 20.x
  • npm or yarn

Project Structure

src/
โ”œโ”€โ”€ __tests__/          # Test files
โ”œโ”€โ”€ controllers/        # Route controllers
โ”œโ”€โ”€ middleware/         # Express middleware
โ”œโ”€โ”€ routes/            # API routes
โ”œโ”€โ”€ validation/        # Validation schemas
โ”œโ”€โ”€ database.ts        # In-memory database
โ”œโ”€โ”€ server.ts          # Express server setup
โ””โ”€โ”€ types.ts           # TypeScript type definitions

โญ Star this repository if you found it helpful!

About

SimpleHttpServer

Topics

noderestapisimplehttpservertypescript

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.