Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

🚲 Bikeo – City Bike Rental System

Bikeo is a web-based application that allows cyclists to browse available city bikes, make reservations, rent bikes, and manage their accounts and rental history.

System operators can manage the bike fleet, track bike locations, and handle maintenance. The system integrates with external services for payments, authentication, and bike tracking.


🐳 Running the Application with Docker

To streamline development and testing, the project utilizes Docker along with a Makefile to simplify common tasks.

🛠️ Makefile Commands

The following commands are available:

  • Start the application:
    make start

🏗️ Architecture

🧭 C4 Model

🧱 C1: System Context Diagram

This diagram illustrates the primary actors interacting with the system and its external dependencies.

System Context Diagram

🧱 C2: Container Diagram

This diagram provides a high-level view of the system's internal architecture, detailing the main containers and their interactions.

Container Diagram

🧱 C3: Component Diagram

This diagram shows the internal parts of the Food Ordering API, how they work together, and how they connect to outside systems.

Component Diagram

🧪 Tests

The project includes various levels of tests

  • Run tests:
    make test

🧪 Unit Tests

  • Location: tests/unit
  • Purpose: Validate individual components and functions in isolation, primarily within the domain layer.

🔗 Integration Tests

  • Location: tests/integration
  • Purpose: Test the application and infrastructure layers with database access. Before running tests, database migrations are executed once - this is controlled by the APP_RESET_DATABASE variable, which can be set in phpunit.xml.dist or in the environment. Each test runs within a separate transaction: it creates the necessary data, performs assertions, and then rolls back the transaction. As a result, the database remains empty and unchanged after each test.

🏗️ Architectural Tests

  • Location: tests/architecture
  • Purpose: Ensure the system's architecture aligns with design principles and requirements.

🧰 Static Analysis & Code Style

  • 🧠 PHPStan – Static Analysis
  • 🎨 PHP CS Fixer – Code Style Enforcement Purpose: Maintain high code quality aligns with coding standards.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages