Extract Reference Data Service from Monorepo#5
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Extract Reference Data Service from Monorepo#5devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Copy complete NestJS application structure from traderXCognitiondemos/reference-data - Include all source code, configuration files, and S&P 500 CSV data - Service provides stock ticker information via REST APIs on port 18085 - Verified service builds, starts, and API endpoints work correctly - All 507 S&P 500 companies data included and functional Co-Authored-By: Samir Chaudhry <schaudhry123@gmail.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extract Reference Data Service to Standalone Repository
This PR extracts the reference data service from the
COG-GTM/traderXCognitiondemosmonorepo into a new standalone repository. The service is a complete NestJS application that provides stock ticker information via REST APIs.Changes Made
/reference-datadirectory structure from the monoreposrc/directory)package.json)Dockerfile,base.Dockerfile)data/s-and-p-500-companies.csvwith 507 S&P 500 companies)openapi.yaml).eslintrc.js,.prettierrc,nest-cli.json,tsconfig.json)Service Architecture
src/app.module.tsimports StocksModule and HealthModuleGET /stocks- Returns all stocks from CSV dataGET /stocks/{ticker}- Returns specific stock by ticker symbolGET /healthendpoint using @nestjs/terminus/apiendpointEnvironment Configuration
REFERENCE_DATA_SERVICE_PORT(default: 18085)REFERENCE_DATA_HOSTNAME(default: 0.0.0.0)Verification Results
✅ Service builds successfully -
npm run buildcompleted without errors✅ Service starts correctly - Runs on port 18085 as expected
✅ API endpoints functional:
GET /stocksreturns complete list of 507 stocksGET /stocks/MMMreturns specific stock data for 3M CompanyGET /healthreturns health check status✅ All dependencies resolved - No missing packages or build issues
✅ Data loading works - CSV file properly parsed and loaded
Testing Commands Used
The service is now completely independent and ready for deployment as a standalone microservice.
Link to Devin run: https://app.devin.ai/sessions/f924326f296b46439860a56d99c9daa3
Requested by: Samir Chaudhry (samir@cognition.ai)