Hawk 2.0 web client
- Create
.env
file (use.env.sample
for example). - Run
yarn install
to install all dependencies. - Run
yarn serve
to run dev server.
- Create
.env
file (use.env.sample
for example). - Run
yarn install
to install all dependencies. - Run
yarn build
to build the app. - Run
yarn serve:prod
to run simple production server.
- Build image from
Dockerfile
:docker image build . -t hawk_garage
- Run container:
docker run -it -p 8080:8080 --rm hawk_garage
Storybook is a components explorer. It is used to explore components UI and behaviour and to develop them in isolation.
To add story, create a folder for component in src/storybook/stories. In a folder create .ts
file for story and .mdx
file for story docs.
To run storybook, use yarn storybook
command
yarn lint:js
- runs eslint to check files with.js
and.vue
extensions.yarn lint:css
- runs stylelint to check files with.css
and.vue
extensions.yarn lint
- runs both eslint and stylelint.
After updating Hawk GraphQL API scheme you should pull its schema (see file) for code highlighting and typechecking in queries.
Run yarn get-schema
to load schema from local server