1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00
examples/juniper-advanced
yjh 89d2e4e3f7
fix typo and update some deps (#390)
* chore: fix typo for `run-in-thread`

* chore: update some deps for examples
2020-12-14 11:30:06 +00:00
..
src Removing namespace usage for clarity (#369) 2020-09-20 18:24:14 +01:00
.env.example Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00
Cargo.toml fix typo and update some deps (#390) 2020-12-14 11:30:06 +00:00
mysql-schema.sql Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00
README.md Rename graphql-demo to juniper-advanced 2020-05-19 14:23:28 +09:00

juniper-advanced

GraphQL Implementation in Rust using Actix, Juniper, and Mysql as Database

Prerequites

  • Rust Installed
  • MySql as Database

Database Configuration

Create a new database for this project, and import the existing database schema has been provided named mysql-schema.sql.

Create .env file on the root directory of this project and set environment variable named DATABASE_URL, the example file has been provided named .env.example, you can see the format on there.

Run

# go to the root dir
cd juniper-advanced

# Run
cargo run

GraphQL Playground

http://127.0.0.1:8080/graphiql