Giter Club home page Giter Club logo

axum_tailwind_template's Introduction

Axum-Tailwind-Template

A simple template using Axum and Tailwind to speed up your Rust development. Deploy-ready with a Dockerfile so that you can host this anywhere you can a container.

No Node/npm needed!

Based on my blog (code here).

Stack

Template Features

Comes with a configured Github CI, Dependabot, server telemetry, and basic tests.

To Do

Important

You'll need to download and install the following to begin working:

Make it your own:

  • Update the package name in the Cargo.toml
  • Update the Dockerfile with that same name
  • Update the site name and description in templates/base.html
  • Find and replace all instances in the source code of 'axum_tailwind_template' with your package name.
  • Update this README.md!

Developing

Included is a bash script in a justfile that can be run with:

just dev

This will start the Axum server and Tailwind binary in watch modes so that saves will trigger rebuilds while you're developing. On exiting this process, the Tailwind binary will minify its outputted css.

Building the Tailwind CSS separately

  • Run:
just build-tailwind
  • Or as developing, in another tab run:
just run-tailwind

to automatically compile the tailwind as you're making changes.

Also included in the justfile is:

just update

which will update dependancies and then run the tests.

axum_tailwind_template's People

Contributors

austionian avatar

Stargazers

 avatar

Watchers

 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.