This repository contains the backend code for the Stock Scan Parser web application, built using Fastify.
The backend provides an API that returns the response data required by the frontend to display stock market scans. The response matches the output of the provided JSON data available at http://www.coding-assignment.bombayrunning.com/data.json.
-
Clone the repository
https://github.com/deepak-terse/stock-scan-parser-backend.git
-
Install dependencies
cd stock-scan-parser-backend npm install
-
Set environment variables
Creat .env file in the root directory with following configuration or add them manually
# Server configuration SERVER_HOST=localhost SERVER_PORT=3002
-
Start the development server
npm run dev
npm run build
npm run start
npm run test
- Fastify: A fast and low-overhead web framework for Node.js
- Jest: A delightful JavaScript testing framework with a focus on simplicity