Giter VIP home page Giter VIP logo

salvo-cli's People

Contributors

beyondone4 avatar chrislearn avatar fan-tastic-z avatar fankailiu avatar mi4uu avatar mrxiaozhuox avatar peanut-cc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

salvo-cli's Issues

Plans to improving salvo-cli

source of inspiration Improvements to the program will be outlined below

  • use cargo workspace

  • add support for SPA so client side apps can be written.

  • Add support for surrealdb. It can be embedded as well as run in clusters, supports vector embeddings

  • use yaml for config, as this allows other folks in the team not familiar with rust or toml.

  • generate README.md so we know what the next step is. for now it probably doesn't matter as it just cargo run. For
    example I had to read the code to understand where the swagger ui is.

    • PS:After generating the project, readme.md is created . Contains an introduction to the selected orm, data migration, and the initialization process. As well as an introduction to the project directory and files. After running the project, the current swagger-ui page is printed in the console
  • add support for background jobs. I think this is very important to enable rich responsive servers.

  • add support for cron jobs

  • instead of rand_utils.rs considering using specific files such as password.rs.

  • Considering using traits for Services. This would allow us to change the implementation via config.

  • consider consistent naming for routes such as get_user_page_router (for html), get_user_route (for apis), - [ ] delete_user_route and so on.

  • remove demo.rs

  • considering using sub folders for templates.

  • Add support for sending emails. Emails usually have html templates too.

  • Add support for 2fa auth.

  • Add support for App passwords.

  • Add support for updating/reseting passwords.

  • call it open api instead of swagger.

  • add support for login, logout and register in homepage.

  • Add generic pagination concept.

  • add CSRF

  • add localization

  • add systemic and watch support so saving .rs files would automatically build

  • add support for server errors. might be even show stack traces in debug mode?

  • socket.io with https://github.com/Totodore/socketioxide for real time communication

  • in memory as well as distributed caching

  • generic storage using https://opendal.apache.org/. Allowing to easily swap files from files system to cloud storages.

  • Group templates into folder. Such as as templates/admin/users/list_page.html instead of templates/user_list_page.html.

  • Implement 500 internal server error page.

  • Add support for CSS minification/compliation. Might be can use grass which includes support for compiling SASS files so we get benefits for variables and imports that can be merged to a single file.

  • Use layout pages instead of duplicating code.

  • Don't default cors to the following. could be security issue.

small naming bug

small bug - when creating a API - SeaOrm - SqLite, the table name "user" is in DB and the query is for "users", after ALTER TABLE user RENAME TO "users"; everything is OK!
You've made an excellent CLI application, it's very convenient!!

Improving salvo-cli

Seems like salvo-cli is quite basic. Every time I write a new salvo project I copy paste lot of existing code. loco looks pretty great but is for Axum. It is inspired by Rails so has lot of ideas figured out already.

Would be more than happy to help out as necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.