Web client for the Alert Hub platform
You can either use docker
or pnpm
to locally run or build this application.
git clone [email protected]:IFRCGo/alert-hub-web-app.git
cd alert-hub-web-app
# Skip if running through docker
pnpm install
Create a .env
file with following variables
APP_TITLE=
APP_MAPBOX_ACCESS_TOKEN=
APP_GRAPHQL_API_ENDPOINT=
APP_GRAPHQL_CODEGEN_ENDPOINT=
You can contact IFRC team to get appropriate values for these variables
pnpm start
# or
docker-compose up
.
├── patches/ (Patches to any of the external dependencies)
├── public/ (Content that needs to be copied during build)
├── generated/ (Generated files: eg. Typescript Definitions)
├── index.html (Base html file)
└── src/
├── App/
│ ├── index.tsx (Defines providers: eg. Auth, Route, Request, Alert)
│ └── routes.tsx
├── index.tsx (Defines routes for the pages)
├── assets/ (images, icons)
├── components/ (Commonly used components)
│ ├── domain/ (Components that are specific to a domain)
├── config.ts (Defines configurations read from environment variables)
├── declarations/ (Type declarations for external libraries)
├── hooks (React Hooks)
├── index.tsx (Initializes React)
├── utils (Utility functions)
└── views/ (Pages that we can navigate on the platform)
└── RootLayout/
└── index.tsx (Defines root layout and requests fetched for DomainContext)
Here is the documentation for Alert Hub GraphQL Client Usage Guide