Skip to content

aodn/ocean-current-frontend

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 installed on your system with version 18.19.1 or superior (you can use nvm for changing the node version).
  • Yarn 4.1.0

Installation

  1. Clone the repository:
git clone <repository-url>
  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. 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.

Branch naming convention

In this project, the branch naming convention is as follow: <branch prefix>/<github issue number>-<brief description of the issue>.

We use the following branch prefixes to categorise the work for each branch:

  • hotfix/: for quickly fixing critical issues
  • fix/: for fixing non-critical issues and bugs
  • feature/: for adding, removing or modifying a feature
  • test/: for experimentation, such as coming up with a working POC or testing an impplementation
  • chore/: literally a chore, such as code clean up, documentation updates, etc.

Example branch name: feature/5348-navbar-date-picker.

Making a commit

A pre-commit hook has been set up using Husky which will run the following on every commit:

  • linting on all staged files
  • all tests
  • checks that the commit message is prefixed with gitmoji

gitmoji

gitmoji is used in this project to categorise the context or intention of each commit for easy identification.

Every commit message must be prefixed with gitmoji either by using markdown directly in the commit message or gitmoji's interactive cli, gitmoji-cli.

The full list of available emojis and their interpretations are available on gitmoji.dev, with the most commonly used ones in this project listed below:

  • 🐛 🐛 - fix a bug
  • 🔥 🔥 - remove code or files
  • ✨ ✨ - introduce new features
  • 💄 💄 - add or update the UI and style files
  • ✅ ✅ - add, update, or pass tests

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

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

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages