Skip to content

Commit 032e173

Browse files
authored
Merge branch 'main' into feature/fasterCarsFromBehind
2 parents 6190686 + 76b1ba7 commit 032e173

File tree

2 files changed

+52
-22
lines changed

2 files changed

+52
-22
lines changed

README.md

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,42 @@ This is built with the intention of being easily approachable by developers who
88

99
This project is still in the early stages of development, so there may be bugs and many missing features. If you are interested in contributing please reach out and we can discuss how we can collaborate.
1010

11+
## Try it out
12+
13+
You can try it out by downloading the latest release from the [releases page](https://github.com/tariknz/irdashies/releases).
14+
15+
Install the .exe and run it. The application will automatically update when a new version is available.
16+
1117
## Table of Contents
1218

1319
- [Introduction](#introduction)
20+
- [Prerequisites](#prerequisites)
1421
- [Installation](#installation)
1522
- [Usage](#usage)
23+
- [Folder Structure](#folder-structure)
24+
- [Storybook](#storybook)
25+
- [Package (create .exe)](#package-create-exe)
26+
- [Testing](#testing)
27+
- [Linting](#linting)
1628
- [Contributing](#contributing)
1729
- [License](#license)
1830

1931
## Introduction
2032

2133
This project is built with React and Electron and uses the iRacing SDK to retrieve data from the iRacing live telemetry memory-map.
2234

23-
## Installation
35+
## Prerequisites
36+
37+
- Node.js (v20 or higher)
38+
- npm (comes with Node.js)
39+
- Windows build tools if you are on Windows
40+
- `npm install -g windows-build-tools` from an elevated PowerShell (run as Administrator).
41+
- See [this guide](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) for more details and alternative methods.
42+
- iRacing installed on your machine (Windows only)
43+
44+
> Note: Developing on MacOS is fully supported and does not require iRacing or any additional tools to be installed as it uses a mocked SDK.
45+
46+
## Installation (for development)
2447

2548
To install IRDashies, follow these steps:
2649

@@ -34,35 +57,20 @@ To install IRDashies, follow these steps:
3457
```bash
3558
npm start
3659
```
60+
5. Optionally, you can run the storybook to view the components in isolation:
61+
```bash
62+
npm run storybook
63+
```
3764

38-
### Generating tracks.json
39-
40-
Since the track map relies on some iRacing assets this should be generated by the user and not committed to the repository.
41-
42-
To generate the `tracks.json` file used for the track map, create a .env file in the root of the project with the following content:
43-
44-
```
45-
IRACING_USERNAME=your-iracing-username
46-
IRACING_PASSWORD=your-iracing-password
47-
```
48-
49-
This account needs to have access to the data API (see the following for details on how to enable legacy authentication: https://support.iracing.com/support/solutions/articles/31000173894-enabling-or-disabling-legacy-read-only-authentication).
50-
51-
Then run the following command:
52-
53-
```bash
54-
npm run generate-assets
55-
```
56-
57-
## Usage
65+
## Usage (for development)
5866

5967
To start using IRDashies, run the following command:
6068
```bash
6169
npm start
6270
```
6371
This will start the application.
6472

65-
Look for the application in your app tray. Right-click on the icon and Lock / Unlock to resize and move overlays around.
73+
Look for the application in your app tray.
6674

6775
> You will need to have Node.js installed on your machine to run the application. You can download it from [here](https://nodejs.org/).
6876
@@ -115,6 +123,22 @@ To create the .exe and the installer run the following:
115123
npm run make
116124
```
117125

126+
## Testing
127+
128+
To run the tests, run the following command:
129+
```bash
130+
npm run test
131+
```
132+
133+
## Linting
134+
135+
To run the linting, run the following command:
136+
```bash
137+
npm run lint
138+
```
139+
140+
> Ensure you have ESLint extension installed if using VS Code and have enabled "Use Flat Config" in your settings.
141+
118142
## Developing on Mac
119143

120144
As you may know, the iRacing SDK is only available on Windows. To develop on Mac OS, there is a mock SDK that is loaded which generates some dummy data for you to work with. This is useful for developing the UI components and widgets.
@@ -149,6 +173,12 @@ Displays a track map with the current position of the cars on track and the trac
149173
150174
![Track Map](./docs/assets/trackmap.png)
151175

176+
### Weather
177+
178+
Displays the weather information for the current session.
179+
180+
![Weather](./docs/assets/weather.png)
181+
152182
## Contributing
153183

154184
We welcome contributions to the IRDashies project! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

docs/assets/weather.png

41 KB
Loading

0 commit comments

Comments
 (0)