GithubHelp home page GithubHelp logo

pleshevskiy / rust-juniper-graphql-diesel-rocket-example Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 2.0 38 KB

This is example for server with graphql and db on rust language

License: MIT License

PLpgSQL 11.83% Rust 87.62% Shell 0.56%
juniper rocket rust database diesel itconfig example boilerplate template

rust-juniper-graphql-diesel-rocket-example's Introduction

Rust Juniper GraphQL Diesel Rocket Example

Clone this project and follow the instructions below and start playing today! Unlike the Rocket example in the Juniper repo, it can be built without relying on types defined in Juniper tests.

Running the project

Since Rocket uses the latest and greatest features of Rust, you need to use a nightly version of rust. As per the Rocket documentation, you can do this using

rustup default nightly

or per project basis

rustup override set nightly

Need to install diesel_cli for database managing

cargo install diesel_cli

Run example database and run migrations using

docker-compose -f docker-compose.example.yml
diesel migration run

Lastly, you can run the server using

cargo run

If all goes well, you will be able to visit http://localhost:8000/ with a graphiql interface.

Attributions

Thank you for examples:

rust-juniper-graphql-diesel-rocket-example's People

Contributors

pleshevskiy avatar skyleite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kylemacey vebr

rust-juniper-graphql-diesel-rocket-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.