type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
#[cfg(test)] | |
mod tests { | |
#[async_std::test] | |
async fn index_page() -> tide::Result<()> { | |
use tide::http::{Url, Method, Request, Response}; | |
let mut app = tide::new(); | |
app.at("/").get(|_| async { Ok("Hello, world!") }); | |
let url = Url::parse("https://example.com").unwrap(); |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis