diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 2c0cd5c..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "extern/pybind11"] - path = extern/pybind11 - url = https://github.com/pybind/pybind11.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 18d3e31..d2eac86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,6 @@ endif() # Include directories include_directories(${PROJECT_SOURCE_DIR}/src) include_directories(${PROJECT_SOURCE_DIR}/src/cimi) -include_directories(${PROJECT_BINARY_DIR}/extern) -include_directories(${PROJECT_BINARY_DIR}/extern/pybind11) -include_directories(${PROJECT_BINARY_DIR}/extern/pybind11/pybind11) # Source files set(SOURCES @@ -44,5 +41,3 @@ add_executable(CimiWeb ${SOURCES} examples/src/server.cpp ) - -configure_file(${PROJECT_SOURCE_DIR}/examples/public/index.html ${CMAKE_CURRENT_BINARY_DIR}/index.html COPYONLY) \ No newline at end of file diff --git a/README.md b/README.md index 1797104..d57238c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Cimi Web + A C/C++ micro framework for building web applications. The idea is to create a minimalistic framework in c++ and CMake to make it as easy as possible. @@ -6,16 +7,23 @@ The framework must handle Servers and Web Sockets. And be as easy to use and possible with simple download to be used ## How to run in C++ + To run server just execute [shell script](https://github.com/Yggdrasill501/cimi-web/blob/main/server.sh) + ``` server.sh ``` + If you're having a struggle running server.sh, remember to give it the correct permission. + ``` chmod +x server.sh ``` -### Examples + +### Examples + - Simple Server implementation + ```c++ //// For Server listening int main() { @@ -32,6 +40,7 @@ int main() { ``` - Simple Client connection + ```c++ //// For Client connection int main() { @@ -54,22 +63,21 @@ int main() { - For more Examples check [./examples/](https://github.com/Yggdrasill501/cimi-web/tree/main/examples) ## Import as python package + ```zsh pip install cimi-web ``` -```python -import cimi -``` - ## Motivation + You may ask where is the motivation coming from? It's coming to understand and to handle the best way how to handle back-end and api development, and since C/C++ is probably the most abstract way to do it your self. ## BTW -The Motivation of this project was to make it as simple as possible. -Simplicity is always found in minimalism, + +The Motivation of this project was to make it as simple as possible. +Simplicity is always found in minimalism, so for the whole project I was using neovim, and if you wish to see my simple config visit [Neovim Setup](https://github.com/Yggdrasill501/yggdrasill501_nvim_setup). After this I can say, "I USE NEOVIM BTW!!!" diff --git a/examples/public/GithubButton.png b/examples/public/GithubButton.png deleted file mode 100644 index e2ee55c..0000000 Binary files a/examples/public/GithubButton.png and /dev/null differ diff --git a/examples/public/LinkedInButton.png b/examples/public/LinkedInButton.png deleted file mode 100644 index d67e970..0000000 Binary files a/examples/public/LinkedInButton.png and /dev/null differ diff --git a/examples/public/MenuIcon.png b/examples/public/MenuIcon.png deleted file mode 100644 index ab2a9d7..0000000 Binary files a/examples/public/MenuIcon.png and /dev/null differ diff --git a/examples/public/favicon.png b/examples/public/favicon.png deleted file mode 100644 index 20a025d..0000000 Binary files a/examples/public/favicon.png and /dev/null differ diff --git a/examples/public/header-image.png b/examples/public/header-image.png deleted file mode 100644 index fd35247..0000000 Binary files a/examples/public/header-image.png and /dev/null differ diff --git a/examples/public/index.html b/examples/public/index.html deleted file mode 100644 index 7a394af..0000000 --- a/examples/public/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - - - - - -I am paragraph
-