d0si / vortex

Vortex framework project. Fast, extensible and easy to use backend framework
https://vortex.d0.si
MIT License
3 stars 1 forks source link
c-plus-plus web-framework

Vortex Framework Build Status Build Docker image

Vortex Framework project. Fast, extensible and easy to use backend framework

Vortex allows you to easily create web application using technology stacks you prefer to use. It uses MVC like pattern using customizable router to parse request url and execute controller to return response as view.

See the documentation for more info.

Features

Getting started

Docker container

The simplest way to start the project is using prebuilt docker images. You will need to pull the latest image using docker pull d0si/vortex:latest and then run it with docker run -it d0si/vortex:latest /vortex/build/bin/vortex. If you replace the last argument with e.g. /bin/bash you will have access to the container shell.

Build locally

To build the project yourself you will need:

Please take a look at d0si/cmake-cpp-vortex-builder/blob/master/Dockerfile.alpine to see how the dependencies can be installed and adapt the concept to match your distro.

After cloning the repo you will need to also get submodules. Use git submodule update --init --recursive to clone them.

Build steps:

  1. Create build folder inside project root and cd into it
  2. Initialize CMake project using cmake .. (Use -DCMAKE_BUILD_TYPE=Release argument to build release binaries)
  3. Build using make or make -j8 replacing 8 with number of build jobs (threads) you want to use for building.
  4. Run executable with sample project ./bin/vortex --config=../samples/server_config.json