Skip to content

Web Framework accelerates the development process with its flexibility & speed of use. Written as a library in C language. You can customize the modules according to your needs. Easily incorporate your libraries into your project via LowPM.

License

Notifications You must be signed in to change notification settings

trycatchh/lower

Repository files navigation

lower-logo

Lower Web Framework

Version License

📦 LowPM (Package Manager)📚 Docs👥 Community🤝 Join Us

What is Lower?

Lower Framework is a lightweight, modular web framework written in C that speeds up development with its flexibility and high performance. It allows you to customize and extend modules easily to fit your needs. With LowPM, integrating external libraries and managing modules becomes simple and efficient, making your projects faster and more maintainable.

Getting Started

Use LW Structure

Copy the project directly and stand it up. All the structures that should be in the project will come, just commit your project on it.

Include Your Project

Include basic modules for run

git clone https://github.com/trycatchh/lower.git

Add the library to your code file

#include "lower/run.h" // Runtime module

To add libraries, please refer to the documentation of the LowPM repository.

Integration

Create a handler
void index_handler(http_request_t *req, http_response_t *res) {
    (void)req;
    render_html(res, "index.html");
}
Register the handler and run the server
int main(int argc, char *argv[]) {
    parameter_controller(argc, argv);
    use_static_files(); // if u want: (public: html/, css/, js/...)
    lw_route(GET, "/", index_handler);
    
    return lw_run(parameter_controller(argc, argv));
}

Static Files Supports

How to Use?

If you have included LowerWF in your project later, compile it with your own build technique. But if you are using the project template, follow this path:

make clean && make # build project

You can then run the project. You can send commands to the binary file of the software as follows:

sudo ./build/lwserver -p 8282 -d

With the -h argument, you can use the appropriate command from the command documentation and find out what the commands are.

How can I contribute?

We welcome your contributions. If there is a software problem, do not hesitate to tell us and we will do our best. We are always open to participation in our team. Please contact us on Discord or Mail. We are always open to new ideas

License

This project is licensed under the MIT License, a permissive open-source license that lets you freely use, modify, and distribute the software. You must include the original copyright and license notice in any copies or substantial portions of the software.

The license provides the software "as is," without any warranty, protecting the authors from liability. Its simplicity and flexibility make it widely used and trusted in the open-source community.

About

Web Framework accelerates the development process with its flexibility & speed of use. Written as a library in C language. You can customize the modules according to your needs. Easily incorporate your libraries into your project via LowPM.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •