Template for easy website creation

Dear rustaceans, I've been working on Rust web development for some time and I always find myself doing the same first N steps when setting the website. Creating some OAuth API, user authentication, CSS/JS minification...

Most of the time I find myself copying code from one project to the next one, so I decided to create a template that can be downloaded and used for web development from the beginning. This way you can avoid lot's of boilerplate code.

The work is not even half finished, and lacks a lot of documentation, even though there are many inline comments (and even some documentation can be generated using cargo doc). Nevertheless, I thought it would be nice to share it with you so that you can give feedback or even use part of the current code.

It currently allows the following:

  • SASS minification to CSS at compile time (compilation will fail if any error is encountered).
  • JavaScript minification at compile time (compilation will fail if any error is encountered).
  • CSS (SASS) and JavaScript source map generation by using a feature for debugging.
  • Some default templates
  • Redis OAuth is being implemented.
  • First OAuth methods (still work in progress).
  • Scalable structure, using latest components. Currently it will use PostgreSQL for databases, but it can be pretty easily changed if needed.

Many more things are planned, as you will be able to see in the README, and some potential improvements aren't even written down yet! You can give feedback and contribute, of course. Some starting issues have been created if you want to help :slight_smile:

Let me know what you think:


1 Like