Skip to content

The C++ micro framework for building web applications in python.

License

Notifications You must be signed in to change notification settings

Yggdrasill501/cimi-web-python

Repository files navigation

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

server.sh

If you're having a struggle running server.sh, remember to give it the correct permission.

chmod +x server.sh

Examples

  • Simple Server implementation
//// For Server listening
int main() {
    try {
        Server server;
        server.runServer();
    } catch (const std::runtime_error& e) {
        std::cerr << "Failed to start the server: " << e.what() << std::endl;
        return 1;
    }

    return 0;
}
  • Simple Client connection
//// For Client connection
int main() {
    Client client;

    if (!client.connectToServer(8080, "127.0.0.1")) {
        std::cerr << "Connection to server failed." << std::endl;
        return 1;
    }

    std::cout << "Connected to the server successfully." << std::endl;

    client.sendMessage("Hello, server! This is the client.");


    return 0;
}

Import as python package

pip install cimi-web
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, so for the whole project I was using neovim, and if you wish to see my simple config visit Neovim Setup. After this I can say, "I USE NEOVIM BTW!!!" And for the future motivation I will implement this on my Raspberry PI, using arch and pacman, so I can say "I USE ARCHLINUX BTW"

About

The C++ micro framework for building web applications in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published