Skip to content
Proyectos

Acerca de

GO Web application! GO is a Red Cross Red Crescent platform to connect information on emergency needs with the right response.

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
Recopilando historial
in 15 days
Recopilando historial
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original


IFRC GO Logo

IFRC GO

IFRC GO is the platform of the International Federation of Red Cross and Red Crescent, aimed at connecting crucial information on emergency needs with the appropriate response. This repository houses the frontend source code for the application, developed using React, Vite, and associated technologies.

Built With

React Vite TypeScript pnpm

Getting Started

Below are the steps to guide you through preparing your local environment for IFRC GO Web application development. The repository is set up as a monorepo. The app directory houses the application code, while the packages directory contains related packages, including the IFRC GO UI components library.

Prerequisites

To begin, ensure you have network access. Then, you'll need the following:

  1. Git
  2. Node.js as specified under engines section in package.json file
  3. pnpm as specified under engines section in package.json file
  4. Alternatively, you can use Docker to build the application.

[!NOTE]
Make sure the correct versions of pnpm and Node.js are installed. They are specified under engines section in package.json file.

Local Development

  1. Clone the repository using HTTPS, SSH, or GitHub CLI:

    git clone https://github.com/IFRCGo/go-web-app.git # HTTPS
    git clone [email protected]:IFRCGo/go-web-app.git # SSH
    gh repo clone IFRCGo/go-web-app # GitHub CLI
    
  2. Initialize submodules

    git submodule update --init --recursive --remote
    
  3. Install the dependencies:

    pnpm install
    
  4. Create a .env file in the app directory and add variables from env.ts. Any variables marked with .optional() are not mandatory for setup and can be skipped.

    cd app
    touch .env
    

    Example .env file

    APP_TITLE=IFRC GO
    APP_ENVIRONMENT=testing
    ...
    
  5. Start the development server:

    pnpm start
    

Malawi Risk Watch (optional)

The Malawi sources on the country risk watch page use the Malawi Risk Watch backend. They stay hidden unless APP_MALAWI_RISK_WATCH_DOMAIN is set. To work on them:

  1. Initialize the malawi-risk-watch-backend submodule. Its schema.graphql drives the GraphQL type generation in pnpm generate:type. Without it a stub is used and the Malawi code fails typecheck.
  2. Set APP_MALAWI_RISK_WATCH_DOMAIN to the backend host, without a trailing slash. The backend does not send CORS headers, so the dev server proxies its GraphQL API automatically.

See the feature notes for how the sources are put together.

Contributing

Additional Packages

The repository hosts multiple packages under the packages directory.

  1. IFRC GO UI is a React UI components library tailored to meet the specific requirements of the IFRC GO community and its associated projects.
  2. IFRC GO UI Storybook serves as the comprehensive showcase for the IFRC GO UI components library. It is hosted on Chromatic.

IFRC GO Backend

The backend that serves the frontend application is maintained in a separate repository.

Previous Repository

Go Frontend is the previous version of the project which contains the original codebase and project history.

Community & Support

  • Visit the IFRC GO Wiki for documentation of the IFRC GO platform.
  • Stay informed about the latest project updates on Medium.

License

MIT

Explorar proyectos relacionados

Cargando…