- Sample project for using complate-cpp
For a detailed description how to use complate-cpp checkout out the User Guide.
To run this example, run the following commands. It will start a local webserver on localhost and serve a profile example. If you want to play around a bit, look at the views/profile.jsx file, this is the view which is rendered. Because of this example uses a ReEvaluatingRenderer, you can edit the view and see your changes right after refreshing your browser, with no need to restart the application itself.
# Install dependencies
sudo apt install -y build-essential git cmake nodejs npm
# Clone repository
git clone https://github.com/tmehnert/complate-sample-cpp.git
cd complate-sample-cpp
# Build example
cmake -B build
cmake --build build -j4
# Run in another terminal and keep npm start running
npm install
npm start
# Run the example
build/src/complate-sample
- complate-cpp, Apache 2.0 (fetched via CMake)
- cpp-httplib, MIT License (fetched via CMake)
- Node.js
- CMake >= 3.14 required
complate-sample-cpp is Open Source software released under the Apache 2.0 license.