Skip to content

Commit

Permalink
Merge pull request #10 from aodn/feature/5466-update-README
Browse files Browse the repository at this point in the history
Feature/5466 update readme
  • Loading branch information
utas-raymondng authored Mar 21, 2024
2 parents f0e2d57 + d9abb8c commit 3eab6a9
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: 18.x

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
100 changes: 90 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,95 @@
# AODN Portal RC1
# Project for AODN portal v2

Release Candidate 1 - for limited release to key stakeholders of priority features.
## Getting Started

## Running the app locally
To set up this project locally, follow these steps using Yarn and Vite for a smooth development experience.

For testing the app locally ensure you have Vite, React, Yarn installed globally.
## Prerequisites

1. Clone the repositiory to your local machine
2. Navigate to the repository's root directory
3. Install the project dependencies with `yarn install`
4. Run the app in dev mode `yarn dev`
5. Navigate to localhost in the browser (http://localhost:5173/)
- Node.js installed on your system with version 18.x || >=20.0.0 (you can use [nvm](https://github.com/nvm-sh/nvm) for changing the node version).
- Npm installed on your system with version >=8.0.0

It takes a minute or two to load up the first time you run it.
## Installation

1. **Clone the repository:**

```bash
git clone <repository-url>
```

2. **Navigate to the project directory:**

```bash
cd <project-name>
```

3. **Install the project dependencies:**

```bash
yarn install
```

4. **Run dev mode:**

```bash
yarn dev
```

This will start the project on a local server, typically http://localhost:5173/, and you can begin exploring the enhanced data visualization features.

## Dependencies

List of primary dependencies:

- React
- Vite
- Material UI
- ESLint
- Prettier
- Husky
- Vitest
- Mapbox

## Configuration

- `.eslintrc.js` for linting rules
- `vite.config.ts` for Vite build tool configuration
- `tsconfig.json` for TypeScript configuration
- `docker-compose` and `dockerfile` for Docker configuration
- `AppThene.ts` for css theme

## Styles

We are using [material ui](https://mui.com/material-ui/) and our configuration theme file it's in `AppThene.ts`

## Commit

We are using [gitmoji](https://gitmoji.dev/) with husky and commitlint. Here you have an example of the most used ones:

- :art: - Improving structure/format of the code.
- :zap: - Improving performance.
- :fire: - Removing code or files.
- :bug: - Fixing a bug.
- :ambulance: - Critical hotfix.
- :sparkles: - Introducing new features.
- :memo: - Adding or updating documentation.
- :rocket: - Deploying stuff.
- :lipstick: - Updating the UI and style files.
- :tada: - Beginning a project.

Example of use:
`:wrench: add husky and commitlint config`

## Branching name

- `hotfix/`: for quickly fixing critical issues,
- `usually/`: with a temporary solution
- `bugfix/`: for fixing a bug
- `feature/`: for adding, removing or modifying a feature
- `test/`: for experimenting something which is not an issue
- `wip/`: for a work in progress

And add the issue id after an `/` followed with an explanation of the task.

Example of use:
`feature/5348-create-react-app`
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,9 @@
"**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write --ignore-unknown"
]
},
"engines": {
"node": "18.x || >=20.x",
"npm": ">=8.0.0"
}
}

0 comments on commit 3eab6a9

Please sign in to comment.