Coder Social home page Coder Social logo

xpanse-ui-new's Introduction

GUI for Xpanse App

This is the UI for the Xpanse App which allows cloud service providers to deploy managed services.

Development Setup

Project is built on ReactJS and TypeScript. Ensure all objects have type explicity defined. GUI components are built using antd library.

Starting local development server

In the project directory, you can run the below command to start the local development server. This also additionally needs nodejs to be installed on the development machine.

$ npm run start

Open http://localhost:3000 to view it in the browser.

Build for production

$ npm run build

Builds the app for production to the build folder. Contents can be copied to any webserver to host the frontend files.

Generate Rest Client for Xpanse API

We use the openapi generator to generate data models and rest client from the openapi json file. The following steps must be followed to generate new client and datamodels whenever there is a new version if the swagger json.

  1. Copy the openapi file to OpenApi JSON File
  2. Downland generator jar from maven central. For example from - https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.4.0/openapi-generator-cli-6.4.0.jar
  3. Run the jar as below
    $cd ui/src/xpanse-gui
    $java -jar openapi-generator-cli-6.3.0.jar generate -i api.json -g typescript -o generated
    This step will generate all required models and client
  4. Delete all additional files and keep only the TypeScript files.
  5. Auto generated classes will have some compile errors mainly in the imports. They must be fixed manually. This is because of the open issues in the generator.

xpanse-ui-new's People

Contributors

swaroopar avatar iskey avatar jbonofre avatar alice1319 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.