DEV Community

Cover image for Rust Web Start Kit β€” Jump-Start Your Web Development with Rust
Max Zhuk
Max Zhuk

Posted on

Rust Web Start Kit β€” Jump-Start Your Web Development with Rust

Rust πŸ¦€ is a powerful, fast, and secure programming language that's increasingly being chosen for server-side applications. However, starting from scratch can be challenging β€” you need to select libraries, write configuration, set up routing, and templating.

The idea to create the Rust Web Start Kit was born when my friend Igor 😎 asked for advice on creating an API with Rust. I scratched my head and thought that instead of explaining everything from the ground up, it would be better to make a starter kit that would help him and other developers focus on functionality rather than spending time selecting tools and configuring them.

πŸ”‘ What's Already in the Start Kit:

  • Actix-web framework for creating APIs and SSR
  • SeaORM ORM for database operations
  • Handlebars templating engine for server-side rendering
  • Docker for containerization
  • Basic architecture for separating logic

How to Get Started?

  1. Clone the repository:
git clone https://github.com/ZhukMax/rust-web-kit my-new-api
Enter fullscreen mode Exit fullscreen mode
  1. Install dependencies:
make abuild
Enter fullscreen mode Exit fullscreen mode
  1. Start the server:
make start
Enter fullscreen mode Exit fullscreen mode

The Start Kit already includes a Dockerfile, which allows you to build your project into a Docker image and run it in a container.

You can also quickly set up a database for your project using Docker, for example:

docker run --name sea_ms_db -e POSTGRES_PASSWORD=secret_password -d postgres
Enter fullscreen mode Exit fullscreen mode

🚧 Roadmap

In upcoming releases, I plan to add:

  • Authorization with JWT
  • Examples of routes and controllers
  • Logging
  • Static files support

⭐️ Support the Project

If you like the idea or want to support the development of Rust in web development β€” leave a star in the repository. This will help the project become more visible and motivate me to develop it further!

πŸ‘‰ GitHub Repository

Open to ideas and pull requests!

Top comments (0)