brendanball/example-actix-web-juniper-diesel

Example using Rust Actix-web (web framework) with juniper (Graphql) with diesel (ORM)

Diesel's Getting Started guide using SQLite for Actix web

Juniper

Diesel

Diesel's Getting Started guide using SQLite for Actix web

Usage

init database sqlite

cargo install diesel_cli --no-default-features --features sqlite
cd examples/diesel
echo "DATABASE_URL=file:test.db" > .env
diesel migration run

server

# if ubuntu : sudo apt-get install libsqlite3-dev
# if fedora : sudo dnf install libsqlite3x-devel
cd examples/diesel
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:8080

Graphql client

http://localhost:8080/graphiql

sqlite client

# if ubuntu : sudo apt-get install sqlite3
# if fedora : sudo dnf install sqlite3x
sqlite3 test.db
sqlite> .tables
sqlite> select * from users;

Information - Updated Sep 10, 2021

Stars: 15
Forks: 4
Issues: 0
Actix

14.1K

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Rust's premier framework for working with HTTP/1.x HTTP/2 requests. Includes core features like websockets, keep-alives and slow requests handling

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust

Rocket is an async web framework for Rust with a focus on usability, security,

Visiting localhost:8000/hello/John/58, for example, will trigger the hello

Rocket is an async web framework for Rust with a focus on usability, security,

An fast and intuitive rust web framework

built with async/await in mind

An fast and intuitive rust web framework
Http

620

Sapper, a lightweight web framework, written in Rust

json demo, you can learn how to parse http parameters, and return json;

Sapper, a lightweight web framework, written in Rust
Http

799

Rouille, a Rust web micro-framework

Rouille is a micro-web-framework library

Rouille, a Rust web micro-framework

Body parsing plugins for the Iron web framework

Body parsing plugins for the core bundle

Body parsing plugins for the Iron web framework

Ruukh - Frontend Web Framework

An experimental next-gen frontend framework for the Web in Rust

Ruukh - Frontend Web Framework

Static file-serving handler for the Iron web framework

Static file-serving handler for the mounting handler to serve files from several directories

Static file-serving handler for the Iron web framework

A plugin for the Iron web framework that parses parameters from incoming requests from the...

A plugin for the working on hosting it at MIT license (LICENSE-MIT or

A plugin for the Iron web framework that parses parameters from incoming requests from the...

Rocket is a web framework for Rust (nightly) with a focus on ease-of-use,

Here's an example of a complete Rocket application:

Rocket is a web framework for Rust (nightly) with a focus on ease-of-use,

Actix is a powerful, pragmatic, and extremely fast web framework for Rust: Get Started

Actix is a powerful, pragmatic, and extremely fast web framework for Rust: I'm still learning Rust, so let me know if you catch something wrong!

Actix is a powerful, pragmatic, and extremely fast web framework for Rust: Get Started
Facebook Instagram Twitter GitHub Dribbble
Privacy