This is a simple boilerplate for a web API using Rust.
If you want to contribute to this project, please follow the next steps:
- Create a new branch from
develop
- Make your changes
- Create a pull request to
develop
- Wait for the review
- Use the following format for your commit messages:
[<type>] <description>
- Where
<type>
can be:feat
: for new featuresfix
: for bug fixesdocs
: for changes in documentationstyle
: for changes in code stylerefactor
: for code refactoringtest
: for changes in testschore
: for changes in the build process or tools
- And
<description>
is a short description of the changes
git commit -m "[feat] Add a new endpoint to get a user by id"
git commit -m "[fix] Fix a bug in the user creation endpoint"
git commit -m "[docs] Add a new section in the README file"
To run the server in development mode, use the following command:
cargo run
or to watch for changes and restart the server automatically:
cargo watch -x run
- Add a docker container
- Add a postgres database
- Add a mysql database
- Add a mongodb database
- Add a simple CRUD example
- Add env files to handle some configs
- Add auto generation of change log based on commit messages
- Add a CI/CD pipeline
- Add data obfuscation to preserve user sensitive data
- Add a simple authentication example using JWT
- Add a simple authorization example using roles
- Add a simple example of how to handle errors
- Add a simple example of how to handle logs
- Add a simple example of how to handle tests
- Add a simple example of how to handle migrations
- Add a simple example of how to handle internationalization
- Add a simple example of how to handle caching
- Add a ORM? (diesel, prisma, sqlx, etc), or maybe a simple example of how to handle raw sql?