Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ only #9

Merged
merged 1 commit into from
Mar 12, 2024
Merged
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
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
# 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.
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() {
Expand All @@ -32,6 +40,7 @@ int main() {
```

- Simple Client connection

```c++
//// For Client connection
int main() {
Expand All @@ -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!!!"
Expand Down
Binary file removed examples/public/GithubButton.png
Binary file not shown.
Binary file removed examples/public/LinkedInButton.png
Binary file not shown.
Binary file removed examples/public/MenuIcon.png
Binary file not shown.
Binary file removed examples/public/favicon.png
Binary file not shown.
Binary file removed examples/public/header-image.png
Binary file not shown.
21 changes: 0 additions & 21 deletions examples/public/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions examples/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/public/robots.txt

This file was deleted.

6 changes: 0 additions & 6 deletions examples/src/main.py

This file was deleted.

20 changes: 0 additions & 20 deletions setup.py

This file was deleted.

46 changes: 0 additions & 46 deletions src/wapper.cpp

This file was deleted.

Loading