vinaymahamuni / esw-ocs-eng-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESW-OCS-ENG-UI

This project is a React web application.

Prerequisites Required for Running OCS-UI Application

  1. csw-services are required to be up & running. using sbt shell inside csw csw-services/run start -k -c

  2. AgentService, along with one or more Agent's are required to be up & running. using sbt shell inside esw esw-services/run start -agent --agent-service

The latest stable version of Node.js must be installed.

Run the Application in Local Environment

Run following commands in the terminal.

  npm install
  npm start

Then, open localhost:8080 in a browser

Required backend services/components

  • Location Service
  • Auth Service - user with esw-user role is required
  • Agent Service
  • One or more agents should be up and running.

Build the App for Production

Run following commands in the terminal.

npm install
npm run build

Running Tests

npm test

How to Use the Project

The project has following structure:

.
├── src
│   ├── assets
│   ├── components
|   ├── containers
│   ├── config
│   ├── features
│   ├── routes
├── test
├── types
  • assets: This directory contains all the files (images, audio etc) that are used by the UI component.
  • components: App reusable functions / components created for this UI application.
  • config: This contains the application specific configurations.
  • containers: App reusable functions / utilities goes here.
  • test: This directory contains all the tests for the UI application.
  • types: This directory contains all the types that needs to be imported externally for UI application.

References

  • ESW-TS Library - Link
  • ESW-TS Library Documentation - Link

About


Languages

Language:TypeScript 90.6%Language:JavaScript 4.2%Language:CSS 2.4%Language:Shell 1.7%Language:HTML 1.1%