Skip to content

Commit 767bf6d

Browse files
committed
add readme
1 parent 7143278 commit 767bf6d

File tree

2 files changed

+16
-31
lines changed

2 files changed

+16
-31
lines changed

README.md

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -57,65 +57,48 @@ These values are used in the code and in the following examples too.
5757

5858
## Requirements
5959

60-
The project requires [Java 1.8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) or
60+
The project requires Cmake 3.21 or
6161
higher.
6262

63-
The project makes use of Gradle and uses
64-
the [Gradle wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html), which means you don't need Gradle
65-
installed.
63+
The project makes use of Conan.
6664

67-
## Useful Gradle commands
65+
## Useful Conan commands
6866

69-
The project makes use of Gradle and uses the Gradle wrapper to help you out carrying some common tasks such as building
67+
The project makes use of Conan to help you out carrying some common tasks such as building
7068
the project or running it.
7169

7270
### Build the project
7371

74-
Compiles the project, runs the test and then creates an executable JAR file
72+
Compiles the project, runs the test and then creates an executable file.
7573

7674
```console
77-
$ ./conan install
75+
$ mkdir build && cd build
76+
$ conan install .. --build missing
77+
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_paths.cmake
78+
$ cmake --build . -j
7879
```
7980

80-
Run the application using Java and the executable JAR file produced by the Gradle `build` task. The application will be
81-
listening to port `8080`.
81+
Run the application.
8282

8383
```console
84-
$ java -jar build/libs/joi-energy.jar
84+
$ ./app <address> <kPort> <concurrency>
8585
```
8686

8787
### Run the tests
8888

8989
There are two types of tests, the unit tests and the functional tests. These can be executed as follows.
9090

91-
- Run unit tests only
92-
93-
```console
94-
$ ./gradlew test
95-
```
96-
9791
- Run functional tests only
9892

9993
```console
100-
$ ./gradlew functionalTest
94+
$ ctest .
10195
```
10296

103-
- Run both unit and functional tests
104-
105-
```console
106-
$ ./gradlew check
107-
```
10897

10998
### Run the application
11099
```console
111-
$ ....
112-
```
113-
114-
Run the application which will be listening on port `8080`.
115-
116-
```console
117-
$ ./gradlew bootRun
118-
```
100+
$ ./app <address> <kPort> <concurrency>
101+
```
119102

120103
## API
121104

@@ -299,3 +282,4 @@ Example output
299282
]
300283
}
301284
```
285+

conanfile.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ nlohmann_json/3.9.1
55

66
[generators]
77
cmake_find_package
8+
cmake_paths
89

910
[options]
1011
boost:header_only=True

0 commit comments

Comments
 (0)