AssetBlend Backend is a scalable and efficient server-side application built with Node.js, designed to support the AssetBlend Portfolio Tracker. It leverages CQRS architecture and Gateway design patterns to manage real-time data across 100+ assets.
- CQRS Architecture: Separation of command and query responsibilities for improved performance and scalability
- Gateway Design: Efficient routing and request handling
- Real-time Data Management: Integration with Tingo APIs for up-to-date stock and crypto information
- Efficient Data Computation: Utilizes MongoDB's aggregation framework
- Role-based Access Control: Supports Guest, Registered User, Financial Advisor, and Admin roles
- Node.js
- Express.js
- MongoDB
- Mongoose
- Tingo API integration
-
Clone the repository and navigate to the source.
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add:PORT=3000 MONGO_URL=Your mongo url JWT_SECRET=your jwt secret TIINGO_BASE_URL=tingo base url API_TOKEN=Tiingo api token
-
Start the server:
npm start
For a detailed list of available API endpoints and their descriptions, please refer to the API Endpoints Documentation.
- CQRS: Separate models for read and write operations
- Load Balancing: Prepare for horizontal scaling with load balancers