React frontend that connects to our API, Google Maps API, and APIs with COVID data.
Start the application the following command
npm start
To run the app NodeJs is required
sudo apt update
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt -y install nodejs
sudo apt -y install gcc g++ make
To get the project up and running run the following command
npm install
Routing is handles by the BrowserRouter and the actual routes are defined by Route elements places in Switch elements
<BrowserRouter>
<Switch>
<Route path="/map">
<StandaloneMap/>
</Route>
<Route path="/">
<Switch>
<Route path="/user/">
<UserPagesWrapper>
<Switch>
<Route path="/user/checkup">
<Checkup/>
</Route>
<Route path="/user">
<Landing/>
</Route>
</Switch>
</UserPagesWrapper>
</Route>
<PrivateRoute path="/">
<Wrapper>
<Dashboard/>
</Wrapper>
</PrivateRoute>
</Switch>
</Route>
</Switch>
</BrowserRouter>
All the pages that are render by the router can be found in the src/components/pages directory.
All the API calls are centralised in the src/helpers/api-calls.ts file.
The file is mostly split in two parts, the first one consists of mocks used for development and the other one of the real API calls.
Redux logic is grouped in actions, reducers, store and thunks. All have folders in src.
- TypeScript - A better JavaScript
- React - Frontend framework
- Redux - State management
- React Router - Frontend routing library for react
- Material UI - UI Kit
- Google Maps - Google Maps
- Axios - AJAX requests library