Simple candlestick reader made with TypeScript
- Project Structure
- Setup
- Building the Project
- Running the Project
- Testing
- Docker Deployment
- Environment Variables
- Future Development
- src/: Source files of the TypeScript project.
- dist/: Compiled JavaScript files.
- tests/: Test files for the project.
- Dockerfile: Dockerfile for containerizing the application.
- docker-compose.yml: Compose file for orchestrating multiple containers.
- Install dependencies:
npm install
- Compile TypeScript to Javascript:
npm run build
-
Start the project
npm run startThe consumed results can be checked at
http://localhost:9000/api/candlesticks?isin={ISIN}
- Run the tests with Jest
npm run test
- Run with docker compose
docker-compose up
- PARTNER_SERVICE_URL : URL for the partner service providing real-time instrument data.
Defaults to
ws://localhost:8032for cases when you run the app and the service separately without docker compose
- Persistent storage
- Result serializer
- Separate router
- Integration test coverage
- Graceful shutdown
- Enhaced error handling
- Performance optimizations