Skip to content

Baseflow/full-stack-on-rust

Repository files navigation

Full stack on Rust

This is the code and documentation repository for our 'Full stack on Rust' meetup on 29-9-2022. It includes step-by-step documentation on how to set up a full rust stack for both backend and front-end applications, along with source code.

We'll be creating a complete to-do platform. Backend, front-end, and desktop application, while relying fully on Rust. Here's our current list of requirements:

  • Backend
    • HTTP protocol handling
    • Asynchronous request handling
    • Implement the REST API specification (GET, POST, PUT, DELETE)
    • JSON serialization
    • ORM tooling for connecting to the database
    • Open API v3 spec / including swagger-ui.
    • Containerizing our API
  • web-app
    • t.b.d.
  • desktop-app
    • t.b.d.
  1. Workspaces
  2. Backend webserver
    1. Pick your weapon
    2. Adding actix web to our project
    3. Hello world
    4. Testing our webserver
  3. Rest API
    1. Implementing all Rest methods
    2. Registering the controller methods
    3. Testing our endpoints
  4. JSON Serialization
  5. ORM
    1. Diesel
    2. Adding tables to the database
    3. Query todo items
    4. Connection pooling
    5. Repository pattern
    6. Using the repository
    7. Testing our API
    8. Automatically apply pending Migrations
  6. Open API Spec
    1. Including our public models to the Open API V3 spec
    2. Including information about our endpoints
    3. Configure open api
  7. Containerization
    1. Choosing the right image
    2. Embedding openssl to our artifact
    3. Creating the dockerfile
    4. Composing it all together
    5. Ready to go

About

Source code and documentation for our 'full stack on rust' meetup on 29-9-2022

Resources

Stars

7 stars

Watchers

5 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages