Skip to content

melon095/HTTP-JS-Server

Repository files navigation

Fun little project learn about embedding scripting languages.

This is a very basic HTTP server that can delegate incoming requests to JavaScript functions. It uses duktape as the JavaScript engine.

This is Windows Only because this directly uses the WinSock2 API.

Building

VCPKG is preferred.

# Download

git clone https://github.com/JoachimFlottorp/HTTP-JS-Server --recursive
cd HTTP-JS-Server

# Build the project

cmake -GNinja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake"

ninja -C build -v

Running

.\build\src\HTTP_JS_Server.exe

About

Experimental C++17 HTTP server with an embedded JavaScript engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published