Skip to content

afsungur/mongodb-ticker-analysis-react-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Web Application for MongoDB Ticker Data Analysis

Contents

Intro

This repository includes the source code of the React Web Component of an Atlas App Services Application which is an end-to-end application to analyze financial market data. This React App connects to MongoDB Atlas through MongoDB Realm WEB SDK.

Please review the other repository that covers how to deploy the Atlas App Services Application.

Resources to review before working on this project:

Pre-Requisites of Running the React Application

  • Before uploading the files on a hosting, test everything on a local machine or server.

  • Clone this repository.

  • And change the current directory to this folder.

    •   cd mongodb-ticker-analysis-react-app
  • Make sure you've installed the minimum version of the following node and npm on the machine that you are going to test this React app.

    •   node --version
        v17.8.0
      
        npm --version
        8.5.5
  • Make sure that you've followed the instructions given in the other repository that covers the steps of deploying an Atlas App Services Application. In order to run this React Application without any problem, you need to have Atlas App Services Application first.

  • After you successfully created an Atlas App Services Application, note the id of it.

  • Some data should have already been populated in the database if you've successfully deployed the App Services Application.

  • Change the REALM_APP_ID parameter in the public/config.js file in this repo accordingly with the App Services Application Id that you got from the previous step.

  • Run the given command to install npm packages

    •   npm install

Running the React Application

  • Make sure node_modules/ folder has been created after you installed the application through npm install.

  • Run the development server:

    •   npm start
  • After a while, it automatically launches a new tab in the default browser with the following URL: http://localhost:3000/

Verification of the Configuration

  • In order to make sure that this React Application connects to both App Services Application and Atlas Database Cluster, check the followings out:
    • Check the "Latest Information" section on the main page. After a few seconds, some statistics need to be displayed as shown in the below.
    • Latest info

Building React Application

  • After you've completed your changes in this React Application, you can build it as shown in the below:
    • Build React App
  • After you've built the app, you can upload the files under the build/ directory into Atlas App Services Hosting.

Example Screenshots

Form

Form

Candlestick Charts

Candlestick Chart along with Moving and Exponential Moving Averages

RSI

RSI

MACD

MACD

Stochastic Oscillator

Stochastic Oscillator

Rule Adding

Rule Adding

About

Web Application of Ticker Analysis Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published