Skip to content

Commit

Permalink
Add MAc setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiolnm committed Apr 20, 2024
1 parent 47ffcda commit e6912fe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions mac-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
1. Clone the repository `git clone [email protected]:EVerest/everest-utils.git`

Check notice on line 1 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L1

First line in a file should be a top-level heading
2. From inside VSCode, type `Cmd+Shift+P`
3. Select the directory `everest-utils/docker/everest-playground` to start a DevContainer - all the following commands must be executed in VSCode terminals inside the DevContainer.

Check notice on line 3 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L3

Expected: 80; Actual: 180
4. Run `. init.sh` to initialize the dependencies.
5. Compile and install
```

Check notice on line 6 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L6

Fenced code blocks should be surrounded by blank lines

Check notice on line 6 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L6

Fenced code blocks should have a language specified
cmake .. -DBUILD_SHARED_LIBS=on && make install
```
6. Open a terminal tab to start the MQTT server

Check notice on line 9 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L9

Expected: 1; Actual: 6; Style: 1/1/1
```
cd /workspace/docker ; ./mqtt-devcontainer.sh
```
7. Open a terminal tab to start the Nodered server

Check notice on line 13 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L13

Expected: 1; Actual: 7; Style: 1/1/1
```
cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/nodered-sil.sh
```
8. Export shared libraries

Check notice on line 17 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L17

Expected: 1; Actual: 8; Style: 1/1/1
```
export LD_LIBRARY_PATH=$(find / -name "*.so*" 2>/dev/null | xargs -I {} dirname {} | sort -u | tr '\n' ':' | sed 's/:$//')

Check notice on line 19 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L19

Expected: 80; Actual: 122
```
9. Open a terminal tab to start the Software-in-the-loop simulation

Check notice on line 21 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L21

Expected: 1; Actual: 9; Style: 1/2/3
```
cd /workspace/everest-cpp/everest-core/build ; ./run-scripts/run-sil.sh
```
10. Open http://localhost:1880/ui and test the Charging Station and EV simulators

Check notice on line 25 in mac-setup.md

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

mac-setup.md#L25

Expected: 2; Actual: 10; Style: 1/2/3

0 comments on commit e6912fe

Please sign in to comment.