Skip to content

enhance-dev/enhance-ssr-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

enhance-ssr-cpp

A basic cpp example for Enhance SSR.

Build

Prerequisites:

Get the Enhance .wasm file in the place the project expects it:

mkdir -p vendor && \
  cd vendor && \
  curl -L https://github.com/enhance-dev/enhance-ssr-wasm/releases/download/v0.0.4/enhance-ssr.wasm.gz | gunzip > enhance-ssr.wasm

You might need to update CMakeLists.txt to make the values appropriate for your platform/compiler.

(Also ensure you have e.g. DYLD_LIBRARY_PATH set to include wherever libextism-cpp was installed, e.g. /usr/local/lib, and wherever you have jsoncpp, e.g., /opt/homebrew/lib)

cmake -B build
cmake --build build -j
./build/serve

Demo

Point a browser to http://localhost:3456 and you'll see the enhanced SSR component!

About

Enhance wasm C++ example

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages