Coder Social home page Coder Social logo

beast-router's Introduction

Beast Router

Contents

Synopsis

This is yet another C++ microframework for running web services. The framework is build on top of Boost.Beast and aimed the simpflication of the routing creation for the incoming http requests.

The library is designed for:

  • Easy Routing: Along with the chaining
  • Type Safe handlers: HTTP/1
  • Header only library: Uses C++17
  • Symmetry: Role-agnostic, supports building clients (in progress), servers, or both

Dependencies

  • Boost Libraries >= 1.82.0 as sys. dependency
    • Boost.System
    • Boost.Thread
    • Boost unit testing
    • Boost.Asio
    • Boost.Beast
  • Doxygen >= 1.9.2

Documentation

For the api doc generation you need to execute a target by using your generator passed to cmake. The respective target is "excluded from all" (requires a standalone execution) which is called as doc The target is activated via the ROUTER_DOXYGEN which is OFF by default.

So, see the following as a reference of the docu generation:

cmake -DROUTER_DOXYGEN=ON ...
make doc
open doc/html/index.html

Building

beast-router is a header-only. So, to use it just add the necessary #include line to your source code, such as the following:

#include "beast_router.hpp"

Add the library as a submodule/Fetch content and then link to the respective target

target_link_libraries(
	...
	PRIVATE
		...
		beast_router::beast_router
		...
)

Usage

The examples which you can build and run are in the example directory -- Link

beast-router's People

Contributors

osydunenko avatar

Stargazers

Serhii Olendarenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.