This repository contains the user interface for direktiv.
- this repo requires a specific node version, to easily install the correct one, please install nvm
- in the root directory, run
nvm use
to automatically switch to the required version- which will be read from
.nvmrc
file - please note that you always must run
nvm use
in every terminal session - when the required nvm version is not installed on your machine yet, you have to run nvm install once to do so
- which will be read from
- run
yarn
to install all dependencies - create a
.env
file, copy the content from.env.example
and change the variables to your needs - run
yarn start
to start the dev server - when you are using VSCode, make sure to install the recommended extensions for the best dev experience
- VSCode should suggest you the extensions when you open this folder in VSCode, but you can also check them in the
.vscode/extensions.json
file
- VSCode should suggest you the extensions when you open this folder in VSCode, but you can also check them in the
yarn run storybook
opens the storybook and documentationyarn run test
runs the tests in watch modeyarn run check
runs all the checks that will run in CI:yarn run check:lint
runs the linteryarn run check:types
checks all typesyarn run check:test
runs the tests in ci modeyarn run check:prettier
checks if all prettier formatting was applied (yarn run prettier
)
yarn run e2e:headless
runs all Playwright e2e tests in headless modeyarn run e2e:ui
runs all Playwright e2e tests in ui modeyarn run preview
locally preview the production build (requires you to runyarn build
first)
If you're using Visual Studio Code as your code editor, we highly recommend installing the extensions listed in the .vscode/extensions.json
file. These extensions are designed to enhance your development experience by automatically resolving certain linting issues and formatting your code. When you open this project folder in VS Code for the first time, it should prompt you to install the recommended extensions.
For those not using Visual Studio Code, we strongly recommend using Prettier as your code formatter. Prettier will help you maintain a consistent code style, making it easier to collaborate with other developers. Prettier formatting checks will be enforced during the CI process.
We have adopted the Contributor Covenant code of conduct.
Any feedback and contributions are welcome. Read our contributing guidelines for details.
Distributed under the Apache 2.0 License. See LICENSE
for more information.
- The direktiv.io website.
- The direktiv documentation.
- The direktiv blog.
- The Godoc library documentation.