Installation
📦 Installation
Section titled “📦 Installation”Zuno is designed to be easy to install and integrate into any modern C++ project. You can install it using CMake Fetch Content, or build it manually from source if you prefer full control.
✅ Recommended: Install via CMake Fetch Content
Section titled “✅ Recommended: Install via CMake Fetch Content”The easiest way to get started is by using CMake Fetch Content, a feature that allows you to include external projects directly in your CMake configuration.
1. Configure Your Project
Section titled “1. Configure Your Project”Add the following lines to your CMakeLists.txt
file:
cmake_minimum_required(VERSION 3.16)project(my_zuno_app)
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)FetchContent_Declare(zunoGIT_REPOSITORY https://github.com/ZunoFramework/zuno.gitGIT_TAG main)FetchContent_MakeAvailable(zuno)
add_executable(zuno-app main.cpp)target_link_libraries(zuno-app PRIVATE zuno)
2. Build Your Project
Section titled “2. Build Your Project”Run the following commands to build your project:
cmake -B buildcmake --build build
🛠️ Alternative: Build from Source
Section titled “🛠️ Alternative: Build from Source”If you prefer to build Zuno manually (e.g. for debugging or contributing), follow these steps:
1. Clone the repository
Section titled “1. Clone the repository”git clone https://github.com/ZunoFramework/zuno.gitcd zuno
2. Build the library
Section titled “2. Build the library”cmake -B buildcmake --build build
3. Link it in your project
Section titled “3. Link it in your project”Make sure to include the include/
directory and link against the compiled static or shared library.
🧪 Verify Installation
Section titled “🧪 Verify Installation”To confirm that Zuno is installed correctly, try compiling this minimal example:
#include <zuno/zuno.hpp>
int main() {zuno::App app;app.get("/", [](auto& req, auto& res) { res.send("Zuno is working!");});app.listen(3000);}
Compile and run:
cmake -B buildcmake --build build./build/zuno-app
You should see:
Zuno server running on http://localhost:3000
🧭 Next Steps
Section titled “🧭 Next Steps”Now that Zuno is installed, continue with:
Need help? Visit the Contributing page or open a discussion on GitHub.