ribs-1.4.0 is not a library.
Visit the last successful build:
ribs-0.1.0
Rust Internet Boilerplate Server - 🍖 RIBS
Ribs helps you to set a minimal web server to start a new project in a second.
📦 Installation
- start a new rust project:
- add ribs to your dependencies:
- create a .env file in the root directory of your project and add the following environment variables:
ENV=development
HOST=127.0.0.1
LOG_LEVEL=debug
PORT=3000
others options are : ENV = development | production HOST = any valid IP address LOG_LEVEL = error | warn | info | debug | trace PORT = any valid port number between 1024 and 65535
the code
add the following code to your main.rs file:
use *;
use ;
async
async
🚀 Usage
to run the server, use the following command:
# -> Server running at http://127.0.0.1:3000