/startlight

This is a challenge from Powered by People

Primary LanguageJavaScript

STARTLIGHT

Utilized: React js, Bootsrap and CSS

I didn't use redux because the project is small so I decided to take advantage of state and props.

Summary of my project architecture

/src/assets => contains images

/src/components => contains a collection of ui components e.g cards, spinners. Each component has a test file to help us maintain them because they are used widely in the project.

/src/pages => The pages folder reflects the routes of the application. Each component inside this folder has its own route


/src/parts => The parts folder is almost the same as components folder. It contains a reusable components that is used in the pages.

/src/services => It simply a javascript function to manage API integration based on the type of data.

/src/utils => The utils folder is just a place to locate some utility functions that used repeatedly in the project.It also has test file to help us maintain them because they are used widely in the project.



NOTE: I discovered that the API providers only accepts these coordinates;

lat = 37.788719679657554
long = -122.40057774847898

when you try to use different coordinates apart from these the venue field from the json response is empty.

Please also note that the API has its limitations;
1. One call per second
2. 30 calls per day

So incase you face any issue with the api please subcribe and get an api key from there platform (https://rapidapi.com/yahoo.finance.low.latency/api/resy) and locate this file in the project src/services/ApiConfig.js so that you can replace the api key with your key.

Project setup

npm install
npm start

Run test

npm install
npm test

Help

if you face any problem please don't hesitate to reach me on my email: mwanjilajohnson@gmail.com