Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33
The Rust web framework for lazy developers.
License
Apache-2.0, MIT licenses found
Licenses found
cot-rs/cot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Warning
Cot is currently missing a lot of features and isnot ready for anything even remotely close to production use.That said, you are more than welcome to try it out and provide feedback!
Cot is an easy to use, modern, and fast web framework for Rust. It has been designed to be familiar if you've everusedDjango, and easy to learn if you haven't. It's a batteries-included frameworkbuilt on top ofaxum.
- Easy to use API — in many ways modeled after Django, Cot's API is designed to be easy to use and intuitive.Sensible defaults make it for easy rapid development, while the API is still empowering you when needed. Thedocumentation is a first-class citizen in Cot, making it easy to find what you're looking for.
- ORM integration — Cot comes with its own ORM, allowing you to interact with your database in a way that feelsRusty and intuitive. Rust types are the source of truth, and the ORM takes care of translating them to and from thedatabase, as well as creating the migrations automatically.
- Type safe — wherever possible, Cot uses Rust's type system to prevent common mistakes and bugs. Not only viewsare taking advantage of the Rust's type system, but also the ORM, the admin panel, and even the templates. All that tocatch errors as early as possible.
- Admin panel — Cot comes with an admin panel out of the box, allowing you to manage your app's data with ease.Adding new models to the admin panel is stupidly simple, making it a great tool not only for rapid development anddebugging, but with its customization options, also for production use.
- Secure by default — security should be opt-out, not opt-in. Cot takes care of making your web apps secure bydefault, defending it against common modern web vulnerabilities. You can focus on building your app, not securing it.
To get started with Cot, you need to have Rust installed. If you don't have it yet, you can install it by followingthe instructions on theofficial Rust website.
Then, you need to install cot-cli by running:
cargo install cot-cli
After that, you can create a new project by running:
cot new my_project
This will create a new project in themy_project
directory. You can then navigate to the project directory and runthe following command to start the development server:
cargo run
We recommend you to read theofficial guide to learn more about Cotand how to use it.
If you prefer to use your operating system's package manager to manage thecot-cli
package, you can find it in therepositories listed in the “Packaging status” badge on the right. Note that most of these packages are maintained bythe community, so you should always check what exactly is included in the package. Moreover, the version in the packagemanager might not be the latest one, so we recommend just using the official package which can be installed withcargo install cot-cli
.
Tests that require using external databases are ignored by default. In order to run them, execute the following in theroot of the repository:
docker compose up -dcargotest --all-features -- --include-ignored
You can them execute the following command to stop the database:
docker compose down
Made withcontrib.rocks.
Cot is licensed under either of the following, at your option:
- Apache License, Version 2.0, (LICENSE-APACHE orhttps://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT orhttps://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Cot by you shall bedual licensed under the MIT License and Apache License, Version 2.0, without any additional terms or conditions.
About
The Rust web framework for lazy developers.
Topics
Resources
License
Apache-2.0, MIT licenses found
Licenses found
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.