Thanks to visit codestin.com
Credit goes to github.com

Skip to content

softadastra/pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 pay — Example project using Vix.cpp

pay is a minimal example showcasing how to build and run a C++ web application using the Vix.cpp framework. It demonstrates a clean, cross-platform setup with CMakePresets.json and an optional Makefile for quick builds.


🚀 Features

  • Simple HTTP server powered by Vix::App
  • Cross-platform build system (Linux / macOS / Windows)
  • Modern C++20 codebase
  • Configurable via CMake presets (dev-ninja, dev-msvc)
  • Optional sanitizers for debug builds
  • Integrated logging (via Vix logger)

🏗️ Project Structure

pay/
├── CMakeLists.txt        # Main build configuration
├── CMakePresets.json     # Cross-platform presets
├── Makefile              # Simplified build helper
├── README.md             # Project documentation
└── src/
    └── main.cpp          # Application entry point

⚙️ Requirements

  • CMake ≥ 3.20
  • C++20 compiler
    • Linux/macOS: Clang ≥ 15 or GCC ≥ 11
    • Windows: Visual Studio 2022 (MSVC 19.3+)
  • Ninja (optional, for fast builds)
  • Vix.cpp installed under /usr/local or built locally

🔧 Build and Run

🐧 Linux / macOS / Windows

vix build      # Build the project
vix run        # Run the project

or manually with CMake:

cmake --preset dev-ninja
cmake --build --preset dev-ninja

🪟 Windows (Visual Studio 2022)

cmake --preset dev-msvc
cmake --build --preset dev-msvc

The run target is already defined in the CMake file — it will execute the compiled binary automatically.


🧰 Useful Commands

Command Description
vix build Build the project
vix run Run the project
vix build --clean Clean and rebuild the project
vix help Show CLI help menu

⚡ Example Output

When built successfully, you’ll see logs like:

[2025-10-12 13:41:23.220] [vixLogger] [info] Using configuration file: /home/user/vixcpp/vix/config/config.json
[2025-10-12 13:41:23.221] [vixLogger] [info] Acceptor initialized on port 8080
[2025-10-12 13:41:23.221] [vixLogger] [info] Server request timeout set to 5000 ms

Visit http://localhost:8080/ to test.


🧩 About Vix.cpp

Vix.cpp is a high-performance, modular C++ web framework inspired by FastAPI, Express.js, and Vue.js.

It offers:

  • Extreme performance (40k+ requests/sec)
  • Clean syntax (App app; app.get("/", ...);)
  • Modular architecture (core, orm, cli, json, utils, etc.)
  • Simple CMake integration for external apps

🪪 License

MIT © Vix.cpp Authors

About

Secure mobile payment and digital wallet system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published