-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a top-level README, update contribution documentation #611
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start! A few comments around 🙂
README.md
Outdated
|
||
#### API | ||
|
||
Ensure you have Kubernetes and Strimzi Cluster Operator installed on your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should give at least a "starting point" of a "demo" supported configuration? E.g. install minikube
, install strimzi etc. etc.
README.md
Outdated
Ensure you have Kubernetes and Strimzi Cluster Operator installed on your system. | ||
|
||
```bash | ||
cd api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure that we want the user to run everything in "dev mode"?
I guess, it would be easier to run things as containers in the cluster, and reserve those instructions for a Contributing
document.
README.md
Outdated
Then run the application. | ||
|
||
```bash | ||
./mvn quarkus:dev -DskipTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is dev
mode and requires a bunch of dependencies, e.g. a compatible JDK installed globally, either we remove the requirement or we add a section Pre-requisites
in this document.
README.md
Outdated
|
||
```bash | ||
npm install | ||
npm run dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those commands require some development toolchain to be installed, node, npm versions etc. etc.
I keep being convinced that running in dev mode requires a level of effort that people simply "checking out the project" do not want to invest.
We should strive to make the Quick start as simple and with as little requirements as possible to reduce this friction.
ui/README.md
Outdated
Create a `.env` file containing the details about where to find the API server, and some additional config. | ||
|
||
```.dotenv | ||
BACKEND_URL=http://localhost:8080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This content looks duplicated, keeping the documentation up to date requires maintenance and we wanna minimize it.
Either you keep these information in one place or you put in place automation to keep the text synced.
ui/README.md
Outdated
|
||
This will create an optimized version of the application that can be deployed. | ||
|
||
## Developing the UI | ||
|
||
```bash | ||
npm run dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are the requirements?
ui/README.md
Outdated
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
This will run Playwright against a production build of the application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will run Playwright against a production build of the application. | |
This will run E2E tests(powered by [Playwright](https://playwright.dev/)) against a production build of the application. |
a production build of the application
how can I get one?
README.md
Outdated
```.dotenv | ||
BACKEND_URL=http://localhost:8080 | ||
CONSOLE_METRICS_PROMETHEUS_URL=http://localhost:9090 | ||
NEXTAUTH_SECRET=abcdefghijklmnopqrstuvwxyz1234567890= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NEXTAUTH_SECRET=abcdefghijklmnopqrstuvwxyz1234567890= | |
# the UI uses next-auth for authentication, this variable is required to run the app. Doc here https://next-auth.js.org/configuration/options#secret | |
NEXTAUTH_SECRET=abcdefghijklmnopqrstuvwxyz1234567890= |
README.md
Outdated
``` | ||
|
||
[!WARNING] | ||
Please generate a valid and secure value for `NEXTAUTH_SECRET`. We suggest running `openssl rand -base64 32` to get started. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please generate a valid and secure value for `NEXTAUTH_SECRET`. We suggest running `openssl rand -base64 32` to get started. | |
Please generate a valid and secure value for `NEXTAUTH_SECRET`. We suggest running `openssl rand -base64 32` to get started. More details on [Next.js documentation](https://next-auth.js.org/configuration/options#secret) |
4bcc603
to
b8017f6
Compare
- node (v18+) | ||
- npm (v10+) | ||
|
||
To run a development version of the UI working in all its sections, you will need to install the console on a development cluster first. Please refer to the [install/README.md](../install/README.md) file for detailed instructions about how to do it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused, the ./install/README
file mentions yet another way of installing things, and is not clear what to use when.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also what's "the console" here?
ui/CONTRIBUTING.md
Outdated
npm run test | ||
``` | ||
|
||
This will run Playwright against a production build of the application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's a "production build" in this context?
ui/CONTRIBUTING.md
Outdated
npm run start | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the console. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is console the UI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. It would be good to merge this one. I also have some work to add a compose file that will need to be documented in the new README as well.
api/CONTRIBUTING.md
Outdated
## Regenerating OpenAPI file | ||
|
||
PRs that make changes in the API should update openapi file by executing: | ||
|
||
``` | ||
mvn -Popenapi-generate process-classes | ||
``` | ||
|
||
Please commit generated files along with the PR for review. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section can be removed.
## Regenerating OpenAPI file | |
PRs that make changes in the API should update openapi file by executing: | |
``` | |
mvn -Popenapi-generate process-classes | |
``` | |
Please commit generated files along with the PR for review. |
quickstart/01-kafka.yaml
Outdated
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: Kafka |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These don't seem to be referenced and are similar to what we already have in the install
directory. Are they needed?
Co-authored-by: Andrea Peruffo <[email protected]>
Add a CONTRIBUTING.md file for both the API and the UI module, and point the root one to them
Signed-off-by: Michael Edgar <[email protected]>
Quality Gate passedIssues Measures |
Merging for now to have the structure in place. We'll refine this documentation moving forward. |
Also update the UI README to be more meaningful