1
0
mirror of https://github.com/actix/examples synced 2024-12-18 08:23:10 +01:00
examples/graphql/juniper-advanced/README.md

28 lines
658 B
Markdown
Raw Normal View History

# juniper-advanced
GraphQL Implementation in Rust using Actix, Juniper, and Mysql as Database
2021-04-26 13:32:32 +02:00
## Prerequisites
- Rust Installed
- MySql as Database
2021-04-26 13:32:32 +02:00
## 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.
2021-04-26 13:32:32 +02:00
## Run
```sh
# go to the root dir
cd graphql/juniper-advanced
cargo run
```
2021-04-26 13:32:32 +02:00
## GraphQL Playground
```
http://127.0.0.1:8080/graphiql
```