1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/graphql-demo
2020-04-03 16:16:17 +09:00
..
src Run rustfmt 2020-04-03 16:16:17 +09:00
.env.example rename graphql demo 2019-12-07 20:21:34 +06:00
Cargo.toml update deps 2019-12-25 20:48:33 +04:00
mysql-schema.sql rename graphql demo 2019-12-07 20:21:34 +06:00
README.md Fix directory names on READMEs (#220) 2019-12-26 19:37:34 +09:00

actix-graphql-demo

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 graphql-demo

# Run
cargo run

GraphQL Playground

http://127.0.0.1:8080/graphiql