You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-22Lines changed: 52 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,42 @@ This is built with the intention of being easily approachable by developers who
8
8
9
9
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.
10
10
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
+
11
17
## Table of Contents
12
18
13
19
-[Introduction](#introduction)
20
+
-[Prerequisites](#prerequisites)
14
21
-[Installation](#installation)
15
22
-[Usage](#usage)
23
+
-[Folder Structure](#folder-structure)
24
+
-[Storybook](#storybook)
25
+
-[Package (create .exe)](#package-create-exe)
26
+
-[Testing](#testing)
27
+
-[Linting](#linting)
16
28
-[Contributing](#contributing)
17
29
-[License](#license)
18
30
19
31
## Introduction
20
32
21
33
This project is built with React and Electron and uses the iRacing SDK to retrieve data from the iRacing live telemetry memory-map.
22
34
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)
24
47
25
48
To install IRDashies, follow these steps:
26
49
@@ -34,35 +57,20 @@ To install IRDashies, follow these steps:
34
57
```bash
35
58
npm start
36
59
```
60
+
5. Optionally, you can run the storybook to view the components in isolation:
61
+
```bash
62
+
npm run storybook
63
+
```
37
64
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)
58
66
59
67
To start using IRDashies, run the following command:
60
68
```bash
61
69
npm start
62
70
```
63
71
This will start the application.
64
72
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.
66
74
67
75
> You will need to have Node.js installed on your machine to run the application. You can download it from [here](https://nodejs.org/).
68
76
@@ -115,6 +123,22 @@ To create the .exe and the installer run the following:
115
123
npm run make
116
124
```
117
125
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
+
118
142
## Developing on Mac
119
143
120
144
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
149
173
150
174

151
175
176
+
### Weather
177
+
178
+
Displays the weather information for the current session.
179
+
180
+

181
+
152
182
## Contributing
153
183
154
184
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.
0 commit comments