Code Monkey home page Code Monkey logo

sea-orm-tutorial's Introduction

SeaORM Tutorials

This repository contains step-by-step tutorials on how to use SeaORM to do CRUD operations on databases in the Rust Language.

The tutorial is based on a software system for managing a simple database to store information of bakeries.

The tutorials contain the following chapters:

  1. Bakery Backend - This chapter covers the basics of using SeaORM to interact with the database (a MySQL database is used for illustration). On top of this backend you can build any interface you need.
  2. Rocket Integration - This chapter explains how to integrate the SeaORM backend into the Rocket framework to create a web application that provides a web API or even a simple frontend.
  3. GraphQL Integration - This chapter extends the RESTful API of the web application in Chapter 2 to a GraphQL API with only one endpoint but enhanced flexibility of query.

Discord

For additional help on SeaORM specific questions, join the support Discord chat.

Running the tutorials

To run the tutorial code, switch to the directory of the tutorial and run cargo

# Switch to tutorial directory
$ cd tutorial-folder-name

# Run cargo
$ cargo run

Running the tutorial book

To run the tutorial book as local host first install mdbook

$ cargo install mdbook

Then switch to the book folder in the current tutorial directory

$ cd tutorials-book

Then run mdbook

$ mdbook serve --open

This will open the book in your default browser. Alternatively, access it from any browser by visiting http://localhost:3000

License

The information and examples provided in this repository are licensed under Apache-2.0

Cheers!

sea-orm-tutorial's People

Contributors

charleschege avatar billy1624 avatar tyt2y3 avatar nahuakang avatar shpun817 avatar complexia avatar darkmmon avatar nicarran avatar

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.