Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

5 watching

Forks

Latest commit

 

History

521 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project for Ocean Current Redevelopment

Welcome to our project, aimed at redefining the user experience and accessibility of ocean current. This project is part of a broader initiative to enhance the Ocean Current website, focusing on modern UI/UX design, streamlined data download processes, and improved visualisation features.

Project Overview

  • Objective: To enhance the user experience and accessibility of oceanographic data visualisation, aligning with modern UI/UX standards, and improving the efficiency of data downloads and the quality of visualisation.
  • Scope: This includes a UI/UX redesign, transitioning Matlab processing to Python, and upgrading data visualisation and download capabilities.

Getting Started

Prerequisites

  • Node.js 24 or later — use a version manager (e.g. fnm, nvm) with the .nvmrc file.

Installation

  1. Clone the repository:
# SSH
git clone git@github.com:aodn/ocean-current-frontend.git
# HTTPS
git clone https://github.com/aodn/ocean-current-frontend.git
  1. Navigate to the project directory:
cd ocean-current-frontend
  1. Duplicate .env.local.example file and rename to .env.local:
cp .env.local.example .env.local
  1. Enable Yarn via Corepack (bundled with Node.js):
corepack enable
  1. Install the project dependencies:
yarn install
  1. Run the app in dev mode:
yarn dev

This will start the project on a local server, which can be accessed via http://localhost:5173/. Note: 5173 is Vite's default local dev server port. If you want to use a different port, you can change it in your .env.local file at the VITE_PORT variable.

To log proxy requests in the terminal, run:

yarn dev:log

Or set VITE_PROXY_LOG=true in your .env.local to enable it persistently.

Environment Variables

All environment variables are optional except VITE_MAPBOX_ACCESS_TOKEN. See .env.local.example for the full list with descriptions.

API & Proxy

In development, all API requests go through the Vite dev server proxy:

Path Forwards to
/api/v1 VITE_API_BACKEND_URL (default: edge upstream)
/resource VITE_API_EC2_PROXY_URL (default: edge upstream)
/storage VITE_API_S3_PROXY_URL (default: edge upstream)

In production, all paths are resolved relative to the deployment host — no environment variables are needed.

Configuration

  • .eslintrc.js for linting rules
  • tailwind.config.js for Tailwind CSS configuration
  • vite.config.ts for Vite build tool configuration.
  • tsconfig.json for TypeScript configuration

Contributing

See CONTRIBUTING.md for branch naming, commit conventions, and the git worktree workflow used in this project.

More information

ADR

An architecture decision record (ADR) is a document that captures an important architecture decision made along with its context and consequences. If you want more info about this you can check this link.

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages