aybDev/ayb/commands.md

17 lines
965 B
Markdown
Raw Normal View History

2023-12-15 19:36:37 +00:00
# Commands
Basic commands for ayb development
* SMTP server: `./tests/smtp_server.sh 10026`
2023-12-15 19:54:09 +00:00
* **Note:** You need to create the `cert.pem` and `key.pem` files.
* Run `openssl req -nodes -new -x509 -keyout ./tests/smtp_data_10026/key.pem -out ./tests/smtp_data_10026/cert.pem`.
2023-12-15 20:18:22 +00:00
* The only important value is the `CN`, which should be set to `localhost`. The rest doesn't really matter, I normally use `AQ` and `Antartica`.
2023-12-15 19:54:09 +00:00
* **Note:** You need `openssl` installed in your system to run the command (you need `openssl-devel` anyway to build ayb).
* Run ayb server: `cargo run -- server`.
2023-12-15 19:59:08 +00:00
* **Note:** You need a valid `ayb.toml` file.
2023-12-15 20:18:22 +00:00
* Run `cargo run -- default_server_config > ayb.toml`.
* Change `smtp_port` to `10026`.
* Change `smtp_username` to `"username"`.
* Change `smtp_password` to `"password"`.
* Set `e2e_testing` to `true`
2023-12-15 19:54:09 +00:00
* Only run SQLite tests: `cargo test client_server_integration_sqlite -- --exact`.