graphql-engine/frontend
Nicolas Beaussart 1b33ebc32d ci: introduce required review github action
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7011
GitOrigin-RevId: 357186328a784ad5b44a155d098944c242b08ca8
2022-11-23 14:33:45 +00:00
..
.storybook console: add storybook and tailwind to console-legacy-oss 2022-08-30 08:04:31 +00:00
apps platform: introduce nx docs 2022-11-18 18:56:30 +00:00
docs platform: introduce nx docs 2022-11-18 18:56:30 +00:00
libs platform: introduce nx docs 2022-11-18 18:56:30 +00:00
static console: add storybook and tailwind to console-legacy-oss 2022-08-30 08:04:31 +00:00
tools platform: introduce nx docs 2022-11-18 18:56:30 +00:00
types platform: rename codebases and re import code 2022-10-20 16:21:56 +00:00
.editorconfig frontend: initial nx generation 2022-08-05 18:53:54 +00:00
.eslintrc.json console: Prevent using analytics-related props on React components 2022-10-28 16:23:47 +00:00
.gitignore frontend: dev server config 2022-09-05 15:37:05 +00:00
.npmrc platform: fix graphql codegen in action and graphiql editor 2022-10-18 14:24:14 +00:00
.nvmrc platform(nx): initial oss migration 2022-08-18 19:37:56 +00:00
.prettierignore platform: introduce nx docs 2022-11-18 18:56:30 +00:00
.prettierrc frontend: initial nx generation 2022-08-05 18:53:54 +00:00
babel.config.json frontend: initial nx generation 2022-08-05 18:53:54 +00:00
jest.config.ts frontend: initial nx generation 2022-08-05 18:53:54 +00:00
jest.preset.js platform: introduce nx docs 2022-11-18 18:56:30 +00:00
nx.json console: add storybook and tailwind to console-legacy-oss 2022-08-30 08:04:31 +00:00
package-lock.json platform: introduce nx docs 2022-11-18 18:56:30 +00:00
package.json platform: introduce nx docs 2022-11-18 18:56:30 +00:00
README.md ci: introduce required review github action 2022-11-23 14:33:45 +00:00
tailwind.config.js platform: rework css import to prepare the nx migration 2022-10-12 12:47:51 +00:00
tsconfig.base.json platform: rename codebases and re import code 2022-10-20 16:21:56 +00:00
workspace.json platform: rename codebases and re import code 2022-10-20 16:21:56 +00:00

Frontend

This project was generated using Nx.

Visit the Nx Documentation to learn more about it.

This frontend monorepo contains the Hasura Console, in all the possible modes.

Nx Console

It's highly recommended to install the Nx Console for VSCode, IntelliJ or Neovim.

It will allow you to have all of the Nx commands usable via UI, have an embedded view of the NX graph right in your editor, and much more.

Hasura Console

The Hasura Console is an admin dashboard to manage the connected database and to try out GraphQL APIs. It is a React application bundled with Webpack, and the state is managed mostly using Redux.

Table of contents

How to

Install the dependencies

Run npm install.

Development server

Run nx serve console-ce (requires an .env file) for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run nx build console-ce to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run nx test console-ce to execute the unit tests via Jest.

Run nx affected:test to execute the unit tests affected by a change.

Running end-to-end tests

Run nx e2e my-app to execute the end-to-end tests via Cypress.

Run nx affected:e2e to execute the end-to-end tests affected by a change.

Understand your workspace

Run nx graph to see a diagram of the dependencies of your projects.