Skip to content

byoma-kusuma/core.x.ui

Repository files navigation

Instructions

UI for BKBDS related projects.

Features and major tools

  • Typescript
  • SPA approach with React
  • Client state management with Redux Toolkit & server state with React-Query
  • Graphql preferred
  • 🔐 JWT authentication, CASL
  • Storybook documentation of components
  • Component testing with Jest, E2E with cypress
  • Eslint and Prettier for code style guidelines
  • Mui as a component library, Formik & Yup for forms and validations

Overview

Project Setup and Execution

1. Install Dependencies

Install latest stable nodejs & npm release and add to path.

Install the dependencies for the UI application:

npm install

2. Environment Variables

Setup the environment variables properly in your project root directory.

3. Start and Build UI server

Run UI server in development mode (runs in localhost:3000 by default)

npm run start:dev

Build UI

npm run build

Run Storybook server in development mode (runs in localhost:6006 by default)

npm run storybook

Build Storybook

npm run build-storybook

4. Tests

Run all tests

npm run test

Note: Cypress testing to be added soon

5. Linting

Fix all auto-fixable eslint problems

npm run lint:fix

GraphQL Playground

Open up the example GraphQL queries and copy them to the GraphQL Playground. Some queries and mutations are secured by an auth guard. You have to acquire a JWT token from signup or login. Add the accessTokenas followed to HTTP HEADERS in the playground and replace YOURTOKEN here:

{
  "Authorization": "Bearer YOURTOKEN"
}

Style and Structure Guidelines

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages