cargo install diesel_cli --no-default-features --features postgres
cargo install wasm-pack
cd client
npm i
Set DATABASE_URL=postgres://username:password@localhost/diesel_demo
. (This can be done with a .env file right next to this readme.)
diesel setup
diesel migration run
cargo run
cd client
npm run dev
Both the server and client must be running. Go to localhost:8080.
graphql-client introspect-schema --output client/schema.json http://localhost:8000/graphql