Skip to content

fjordcleanup/trash-web

Repository files navigation

Fjord CleanUP · Report and view trash in the Oslo fjord and in Akerselva.

GitHub Actions semantic-release Renovate @commitlint/config-conventional code style: prettier ESLint: TypeScript

This is the web application that is served on trash.fjordcleanup.org.

The backend source can be found in trash

Setup

Install the dependencies:

npm ci

Provide these environment variables

  • COGNITO_USER_POOL_URL
  • COGNITO_IDENTITY_POOL_ID
  • COGNITO_USER_POOL_CLIENT_ID
  • AWS_REGION

The production values can be seen in the production environment on GitHub.

Run

npm start

Continuous Deployment with GitHub Actions

Create a GitHub environment production.

Store the account ID as a variable:

gh secret set ACCOUNT_ID --env production --body "<account id>"

Provide these environment variables from the backend:

  • For the stack

    • STACK_PREFIX (e.g. fjordcleanup-trash)
    • AWS_REGION (e.g. eu-north-1)
  • For Cognito

    • COGNITO_USER_POOL_CLIENT_ID
    • COGNITO_USER_POOL_URL
    • COGNITO_IDENTITY_POOL_ID
gh variable set "<name>" --env production --body "<value>"

About

Web application to report and view trash in the Oslo fjord and in Akerselva.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 2

  •  
  •