ADORSYS-GIS / e2e-banking-app

Banking app for people
https://adorsys-gis.github.io/e2e-banking-app/
Mozilla Public License 2.0
4 stars 21 forks source link

Setup server in the Rust app #55 #80

Closed Blindspot22 closed 6 months ago

Blindspot22 commented 6 months ago

Description:

This task focuses on enhancing our Rust project by integrating a base server using the Rocket framework and adding support for serialization and deserialization with Serde, serde_json, and serde_derive. The goal is to lay a solid foundation for our application's backend, allowing for efficient data handling and a robust server setup. Objectives:

Add Dependencies: Include Rocket, serde, serde_json, and serde_derive in the project's Cargo.toml.

Configure Rocket: Set up a basic Rocket server to handle incoming HTTP requests.

Implement Serde: Utilize Serde for serializing and deserializing data structures, ensuring seamless data exchange between the server and clients.

Basic Endpoint Creation: Create a simple API endpoint to demonstrate the use of Rocket and Serde together. Update Dockerfile: The port of the server should be exposed on the Dockerfile.

Acceptance Criteria:

The Cargo.toml file is updated with the latest versions of Rocket, serde, serde_json, and serde_derive. A Rocket server is initialized and runs successfully, listening for incoming HTTP requests on a specified port. At least one API endpoint is created, using Serde to serialize and deserialize request and response data. The project compiles without errors, and the endpoint is accessible and correctly handles JSON data as per Serde configurations. Documentation is provided on how to start the server and interact with the created endpoint.

stephane-segning commented 6 months ago

The github action is failing. Please @Blindspot22 @Tekum-Emmanuella @ndefokou @Calebasah fix this

Blindspot22 commented 6 months ago

The github action is failing. Please @Blindspot22 @Tekum-Emmanuella @ndefokou @Calebasah fix this

Okay sir @stephane-segning

Blindspot22 commented 6 months ago

@stephane-segning please review again!