diff --git a/Cargo.toml b/Cargo.toml index c25d6d6..d53f155 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,4 +27,4 @@ serde_path_to_error = "0.1.8" serde_json = "1.0.86" serde = "1.0" serde_urlencoded = "0.7" -tower-http = { version = "0.3.0", features = ["fs", "trace"] } +tower-http = { version = "0.3.0", features = ["full"] } diff --git a/examples/static-react-spa-app/Cargo.toml b/examples/static-react-spa-app/Cargo.toml index a749119..1beda6f 100644 --- a/examples/static-react-spa-app/Cargo.toml +++ b/examples/static-react-spa-app/Cargo.toml @@ -7,3 +7,4 @@ publish = false [dependencies] graphul = { path = "../../." } tokio = { version = "1.0", features = ["full"] } +serde_json = "1.0" diff --git a/examples/static-react-spa-app/README.md b/examples/static-react-spa-app/README.md new file mode 100644 index 0000000..d5fc788 --- /dev/null +++ b/examples/static-react-spa-app/README.md @@ -0,0 +1,18 @@ +# Getting Started with Graphul and React + +## Available Scripts + +### Requirements: + +* Nodejs +* Npm +* Rust :) + +In the project directory, you can run: + +### `bash run.sh` + + +Runs the graphul server.\ +Open [http://127.0.0.1:8000](http://127.0.0.1:8000) to view it in your browser. + diff --git a/examples/static-react-spa-app/app/public/index.html b/examples/static-react-spa-app/app/public/index.html index 06acf65..e5729fa 100644 --- a/examples/static-react-spa-app/app/public/index.html +++ b/examples/static-react-spa-app/app/public/index.html @@ -11,6 +11,7 @@ /> +