The backend is organized into the following structure:
- Routes: Define the API endpoints and their corresponding controllers.
- Controllers: Handle the logic for processing requests from the routes.
- Services: Contain business logic, interacting with models and external services.
- Utils: Host utility functions such as error handlers and loggers.
- Constants: Store constants used throughout the backend.
The frontend follows a structured organization:
- app.js: The main entry point of the frontend application.
- Containers: Hold page-level components, such as the Home component.
- Components: House individual UI components along with their corresponding CSS files.
- Service: Manages API calls and communication with the backend.
- Constants: Stores constant values used across the frontend.
- config.js: Contains important configurations for external connections.
- Context: Implements a React context to maintain authenticated user details.
This structure aims to enhance readability, maintainability, and scalability of both the backend and frontend components.
- To run the API server,
npm run seed
npm install
npm start
- Move to frontend folder and start the front-end app
cd frontend
npm install
npm start
- Common Customized Request Validator: Implement a common request validator for st 55CB andardized input validation.
- Unit Tests: Develop unit tests for all service functions and frontend components to ensure robustness.
- Cloud Logger: Attach a logger to a cloud service for centralized logging and easier debugging.
- Application Layer Cache Mechanism: Introduce an application layer cache mechanism that can be extended to utilize among multiple instances of the API service, enhancing performance and scalability.