Giter Site home page Giter Site logo

beast_king's Introduction

BeastKing

A web framework based on Boost.Beast.

Installing

This is the particlepm manifest which can be used to build the example app from this repository:

PPM_PACKAGE(p) {  
  // package definition  

  PPM::GitHubPtr bk = p->github_repo("handicraftsman", "beast_king");

  PPM::TargetPtr exe = p->executable("bk-test");
  exe->cpp("gnu++17");
  exe->cpp_files({
    "bk-test/main.cpp",
    "bk-test/app.cpp"
  });
  exe->cpp_flags(
    flagcat({
      ("-L" + PPM::dist_dir),

      "-lboost_system",
      "-lboost_log",
      "-lboost_log_setup",
      "-lboost_thread",

      "-lbeast_king",
      "-lbeast_king_server_threaded",

      ("-I" + p->pkg_dir()),
      ("-I" + bk->dir()),

      "-pthread"
    })
  );
  exe->depends(lib);

}

Dependencies

This library depends on Boost>=1.66 and URL

You can configure paths to them using ParticlePM environment files as described here.

Warning: URL library must be cloned with the --recursive flag and built with -DBUILD_SHARED_LIBS=ON flag.

C++ version

This library uses GNU C++17 and may require using GCC 8 for building.

Servers and routers

BeastKing allows using custom servers and routers - you pass your app instance to a server and app stores a pointer to a router.

Other servers and routers can be received from other particlepm packages (if any) or written manually.

beast_king's People

Contributors

handicraftsman avatar

Watchers

James Cloos avatar  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.