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?
- Clone the repository:
git clone https://github.com/ZhukMax/rust-web-kit my-new-api
- Install dependencies:
make abuild
- Start the server:
make start
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
π§ 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)