Skip to content

A simple example of creating a RESTful webservice using pistache (a modern c++ REST framework).

Notifications You must be signed in to change notification settings

benblackcake/pistache_cpp_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pistache C++ Example

A simple example of creating a RESTful webservice using pistache (a modern c++ REST framework).

Prerequisites:

  1. C++
  2. cmake
  3. Pistache
  4. nlohmann/json

Steps to run the project:

  1. Compile the whole implementation of respective headers (.cpp files) by the following command: g++ -std=c++11 -c ./*/*.cpp
  2. Compile the main.cpp file along with the binary files (the output of all compiled implementation headers) by using the following command: g++ -std=c++11 ./main.cpp ./*.o -o ./main
  3. Run the project: ./main then try to access localhost:9000/customers with method: GET.

About

A simple example of creating a RESTful webservice using pistache (a modern c++ REST framework).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages