Skip to content

LaundryManager/Laundry-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LaundryAPI

This API are being created to handle laundry services. I will implement this as part of my Rust Backend learning journey.

Project Stopped until SurrealDB 1.0.0-beta.9 because i'm re-writing the full db every single time! Annoying. Roadmap:

  • Reorganize the project structure
    • Implement config module
      • Added config files
      • Added development config extraction
      • Implement Data Factory to load config files at compile time, before app runs
        • Add Secret in Data Factory Items
          • JWT Login
          • JWT Handler
    • Implement handlers module
    • Implement models module
    • Implement routes module
    • Implement utils module
    • Tests
      • Integration tests * It will not be implemented for now
      • Unit tests
        • *? In which module should I implement unit tests?
  • Handlers
    • Implement token validation
  • Routes
    • Implement user routes

Next Project Structure

├── src
│   ├── main.rs
│   ├── config
│   │   ├── development.toml
│   │   ├── production.toml
│   │   ├── staging.toml
│   │   └── config.rs
│   ├── handlers
│   │   ├── user.rs
│   │   └── ...
│   ├── models
│   │   ├── user.rs
│   │   └── ...
│   ├── routes
│   │   ├── user.rs
│   │   └── ...
│   ├── schema *?
│   │   ├── mod.rs
│   │   ├── user.rs
│   │   └── ...
│   └── utils
│       ├── auth.rs
│       ├── database.rs
│       └── ...
└── tests
    ├── integration
    │   ├── user_test.rs
    │   └── ...
    └── unit
        ├── auth_test.rs
        └── ...

Uso da lavanderia: Cada usuário pode usar uma das lavadoras por 1:30 horas por dia, os horários são fixos, começando a partir das 7 da manhã:

  • 7:00 - 8:30
  • 8:30 - 10:00
  • 10:00 - 11:30
  • 11:30 - 13:00
  • 13:00 - 14:30
  • 14:30 - 16:00
  • 16:00 - 17:30
  • 17:30 - 19:00
  • 19:00 - 20:30
  • 20:30 - 22:00

Totalizando 10 horários disponíveis por dia. ( Se tiver mais de uma máquina o valor deve ser multiplicado pela quantidade de máquinas disponíveis. )

About

A training website for manage laundry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages