Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cpp/experiments/use-curl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 3.14)

project(use-curl)

set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror -Wshadow -Weffc++ -Wnon-virtual-dtor")

# https://cmake.org/cmake/help/latest/module/FetchContent.html
include(FetchContent)

FetchContent_Declare(
curl
GIT_REPOSITORY https://github.com/curl/curl.git
GIT_TAG c12fb3ddaf48e709a7a4deaa55ec485e4df163ee # release 7.87.0
GIT_SHALLOW 1 # Only download the latest commit to improve performance
)

add_subdirectory(./src)
3 changes: 3 additions & 0 deletions cpp/experiments/use-curl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# use-curl

Use curl library to make a request and CMakeLists.txt to add library.
2 changes: 2 additions & 0 deletions cpp/experiments/use-curl/mock_server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.log
node_modules
3 changes: 3 additions & 0 deletions cpp/experiments/use-curl/mock_server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Mock Server

Mock server for fetching data using cURL and C++ client.
Empty file.
23 changes: 23 additions & 0 deletions cpp/experiments/use-curl/mock_server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "mock_server",
"version": "0.1.0",
"description": "Mock server for fetching data using cURL and C++ client.",
"author": "Kostic Srecko",
"repository": {
"type": "git",
"url": "git+https://github.com/srele96/sk-experiments.git"
},
"bugs": {
"url": "https://github.com/srele96/sk-experiments/issues"
},
"homepage": "https://github.com/srele96/sk-experiments#readme",
"scripts": {
"start": "nodemon app.js"
},
"devDependencies": {
"nodemon": "^2.0.20"
},
"dependencies": {
"express": "^4.18.2"
}
}
Loading