Coder Social home page Coder Social logo

axum-bits's Introduction

Axum bits and pieces (Also a WIP)

Basic implementations for anyone to view to get started with Axum

Feel free to use this as a getting-started guide for a quick setup for Axum. I wouldn't exactly call this an Axum tutorial, just more a demo of using it. I'll add more in time. Any examples you want to see here put in an issue ticket with "REQUEST: " in the title and I'll see if I can get to it in a timely manner!

The starting point is the aptly named start

Then you can look at either responders or extractors

Added in some medium-level additions

How to run each module

cargo run --bin <module> from the main axum-bits directory

Current Modules

Module Name Description
start basic Axum server
responders Demo of Axum Response
extractors Demo of Axum Extractor
htmlfile Demo of serving a static HTML file with tower_http
htmlstatic Demo of statically storing an HTML file to serve as a route
logging Demo of debug logging using tracing_subscriber middleware
state Demo of how to send a state of data with the server
state-modification Demo of how to modify the state inside of the server with Arc and Mutex

[dependencies]

axum

serde

serde_json

tokio

tower_http

tracing-subscriber


MIT License

axum-bits's People

Contributors

muddanak avatar

Stargazers

 avatar Daniel Pfefferkorn avatar  avatar

Watchers

Daniel Pfefferkorn avatar  avatar  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.