Caution
This application is not production ready.
iemanjad is a daemon server designed to manage general posts. This server acts as a CRUD hub.
Before starting, ensure you have Rust installed on your system with cargo
.
- Clone the . repository:
git clone https://github.com/ugsto/iemanjad.git
- Install the application:
cargo install --path iemanjad
Use the following command to run iemanjad:
iemanjad
By default it expects a directory /etc/iemanjad/
in which the current user have write permissions, but you can change it with the --db-address
flag, specifying another path to persist data or use a separate instance of surrealdb. For example:
iemanjad --db-address speedb:///tmp/iemanjad # Keep in mind that for persistent databases, /tmp is a terrible idea.
Another configurable trait is where to listen for incoming connections. By default, it listens on 127.0.0.1:7029
, but you can use unix sockets or another address with the --api-bind
flag, like this:
iemanjad --api-bind /tmp/iemanjad.sock
To execute tests, run (in the project directory):
cargo test