Skip to content

ngocdo1987/pet-cpp-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to compile C++

g++ helloworld.cpp -o build/helloworld
./build/helloworld
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install gcc-10 gcc-10-base gcc-10-doc g++-10
sudo apt install libstdc++-10-dev libstdc++-10-doc

Exercises

jwt-cpp

git clone https://github.com/Thalhammer/jwt-cpp.git
cd jwt-cpp
mkdir build
cd build
cmake .. && make
sudo make install

cpp-httplib

Install (after install => /usr/local/include/httplib.h)

git clone git@github.com:yhirose/cpp-httplib.git
cd cpp-httplib
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --build . --target install

Compile

g++ server.cpp -o build/server -lpthread

Drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows

sudo apt install git
sudo apt install gcc
sudo apt install g++
sudo apt install cmake
sudo apt install libjsoncpp-dev
sudo apt install uuid-dev
sudo apt install zlib1g-dev
sudo apt install openssl
sudo apt install libssl-dev
git clone https://github.com/drogonframework/drogon
cd drogon
git submodule update --init
mkdir build
cd build
cmake ..
make && sudo make install

Cinatra

Cinatra is a high-performance, easy-to-use http framework developed in Modern C++ (C++20) with the goal of making it easy and quick to develop web applications using the C++ programming language: https://github.com/qicosmos/cinatra

oatpp

🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.

git clone git@github.com:oatpp/oatpp.git
cd oatpp
mkdir build && cd build
cmake ..
sudo make install

restc-cpp

Modern C++ REST Client library => https://github.com/jgaa/restc-cpp

ngrest

Fast and easy C++ RESTful WebServices framework => https://github.com/loentar/ngrest

restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use

JSON

JSON for Modern C++

rapidjson

A fast JSON parser/generator for C++ with both SAX/DOM style API

HTTPRequest

Single-header C++ HTTP request class

HTML -> PDF

Nginx link function

It is a NGINX module that provides dynamic linking to your application in server context and call the function of your application in location directive

C++ chat app

A chat room application developed in C++ using the concepts of multi-threading and socket programming.

POCO

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.

Mongoose

A Premium Embedded Web Server for electronic devices in a single file

Emscripten

Emscripten is a complete compiler toolchain to WebAssembly, using LLVM, with a special focus on speed, size, and the Web platform.

Good repo based on Drogon C++

Another good repos

C++ Web Programming

Redis

ElasticSearch

Kafka

RabbitMQ