Skip to content

tmehnert/complate-sample-cpp

Repository files navigation

complate-sample-cpp

- Sample project for using complate-cpp

Build License

User Guide

For a detailed description how to use complate-cpp checkout out the User Guide.

Run the example

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

Dependencies

Dev dependencies

  • Node.js
  • CMake >= 3.14 required

License

complate-sample-cpp is Open Source software released under the Apache 2.0 license.