codex-team / hawk.garage

Hawk 2.0 web client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hawk.so

Hawk 2.0 web client

How to run

Development

  1. Create .env file (use .env.sample for example).
  2. Run yarn install to install all dependencies.
  3. Run yarn serve to run dev server.

Production

  1. Create .env file (use .env.sample for example).
  2. Run yarn install to install all dependencies.
  3. Run yarn build to build the app.
  4. Run yarn serve:prod to run simple production server.

Docker

  1. Build image from Dockerfile: docker image build . -t hawk_garage
  2. Run container: docker run -it -p 8080:8080 --rm hawk_garage

Storybook

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

Useful commands

  1. yarn lint:js - runs eslint to check files with .js and .vue extensions.
  2. yarn lint:css - runs stylelint to check files with .css and .vue extensions.
  3. yarn lint - runs both eslint and stylelint.

Load GraphQL schema for development

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

About

Hawk 2.0 web client


Languages

Language:Vue 60.0%Language:TypeScript 25.5%Language:JavaScript 12.5%Language:CSS 1.6%Language:HTML 0.3%Language:Dockerfile 0.1%Language:Shell 0.0%