- Intro
- Resources to review before working on this project
- Pre-Requisites of Running the React Application
- Running the React Application
- Verification of the Configuration
- Building React Application
- Example Screenshots
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.
- https://www.mongodb.com/developer/article/time-series-candlestick/
- https://www.mongodb.com/developer/article/time-series-candlestick-sma-ema/
- https://www.mongodb.com/developer/article/time-series-macd-rsi/
- https://www.investopedia.com/terms/t/technicalindicator.asp
- https://www.investopedia.com/terms/t/technicalanalysis.asp
-
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
andnpm
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 thepublic/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
-
-
Make sure
node_modules/
folder has been created after you installed the application throughnpm 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/
- In order to make sure that this React Application connects to both App Services Application and Atlas Database Cluster, check the followings out:
- After you've completed your changes in this React Application, you can build it as shown in the below:
- After you've built the app, you can upload the files under the build/ directory into Atlas App Services Hosting.