tiny-web

tiny-web is a tiny async library (backend web server) that allows you to write a Laravel-style or Django-style backend in Rust language.

This library works with Postgresql 15+ database. But you can try the lower version.

The install.sql file is in the root of the project as a temporary solution so that the server can start. In the future, the install and update command will be added to the library to install and update the database.

Installation

Add tiny-web to your Cargo.toml dependencies:

toml [dependencies] tiny-web = "0.4" tiny-web-macro = "0.1"

You also need to prepare a tiny.conf file in your web server. To do this, take the sample configuration file tiny.sample.conf and place it in the root of your project with the new name tiny.conf. And adjust the corresponding values. Be sure to change the salt parameter. In the future, the tiny.conf file will be created when the install command is executed.

Usage

Just enter the following code to start the server

```rust /// Actions (web controllers) pub mod app;

fn main() { tinyweb::run( env!("CARGOPKGNAME"), env!("CARGOPKGVERSION"), env!("CARGOPKGDESCRIPTION"), || { tinyweb_macro::addfn!(); }, ); } ```

Web site

A commercial website will be created soon. The project can still be viewed on https://github.com/tryteex/tiny-shop.

Dependencies

The tiny-web library depends on a number of other packages. A full list can be found in the Cargo.toml file.

Contributing

If you'd like to contribute to tiny-web, check out our repository on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.