Coder Social home page Coder Social logo

flnaves / airplane Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7.55 MB

Development of a System using React, Material UI and REST API IRIS.

License: MIT License

Dockerfile 0.82% ObjectScript 26.89% HTML 3.02% CSS 1.55% TypeScript 11.07% JavaScript 56.65%
objectscript iris intersystems-iris vscode zpm react material

airplane's Introduction

Airplane (React, Material UI and REST API)

This is a Demo of using React, Material UI and a REST API application in InterSystems IRIS, showing information with different types of graphics, the datasource is get from CENIPA (Aeronautical Accident Prevention and Research Center).

Developers

👦 Flávio Lúcio Naves Júnior @flnaves

👴 Felipe França @felipeflfranca

Prerequisites

Make sure you have git and Docker desktop installed.

Demonstration of screens

Dashboard Menu

Image Dashboard Menu

Occurence Type Report

Image Occurence Type

Airplane Model Report

Image Airplane Model

Geographic Report

Image Geographic Report

Contributing Factors Report

Image Contributing Factors Report

How to Run the Application

Installation

Clone/git pull the repo into any local directory e.g. like it is shown below:

$ git clone https://github.com/flnaves/airplane.git

Open the terminal in this directory and run:

$ docker-compose up -d --build

Go to /Web folder and Run the Yarn:

$ yarn
$ yarn start

That will create a url to acess the Web page:

http://localhost:3000/

or open the folder in VSCode and do the following:

Airplane usage demo

Testing

Unit Test

To test and see if all Unit tests are working go to terminal and execute:

USER> do ##class(%UnitTest.Manager).RunTest(,"/nodelete")

See the results on:

http://localhost:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=2&$NAMESPACE=USER

Tutorial how to test:

Airplane test demo

airplane's People

Contributors

felipeflfranca avatar flnaves avatar

Stargazers

 avatar

Watchers

 avatar  avatar

airplane's Issues

unit tests fail

Node: 6a4ca8c8f28a, Instance: IRIS

USER>set ^UnitTestRoot="/opt/irisapp/tests/UnitTest/Report"

USER>do ##class(%UnitTest.Manager).RunTest(,"/nodelete")

===============================================================================
Directory: /opt/irisapp/tests/UnitTest/Report/

(root) begins ...
Load of directory started on 02/26/2021 17:21:13 '.xml;.XML;.cls;.mac;.int;.inc;.CLS;.MAC;.INT;.INC'

Loading file /opt/irisapp/tests/UnitTest/Report/WebREST.cls as udl

Compilation started on 02/26/2021 17:21:13 with qualifiers '/nodelete', using worker jobs
Compiling class UnitTest.Report.WebREST
Compiling routine UnitTest.Report.WebREST.1
Compilation finished successfully in 0.154s.

Load finished successfully.

UnitTest.Report.WebREST begins ...
  TestGetAllCategoryInfo() begins ...{"Result":[

LogStateStatus:0:TestGetAllCategoryInfo: ERROR #5002: ObjectScript error: zGetAllCategoryInfo+12^dc.Report.WebREST.1 *category <<==== FAILED (root):UnitTest.Report.WebREST:TestGetAllCategoryInfo
TestGetAllCategoryInfo failed
TestGetAllTypeInfo() begins ...{"Result":[
LogStateStatus:0:TestGetAllTypeInfo: ERROR #5002: ObjectScript error: zGetAllTypeInfo+15^dc.Report.WebREST.1 *type <<==== FAILED (root):UnitTest.Report.WebREST:TestGetAllTypeInfo
TestGetAllTypeInfo failed
TestGetGeographicInformationLevelNumber() begins ...{"Result":[]}
AssertStatusOK:Getting all geographic level number information (passed)
LogMessage:Duration of execution: .000088 sec.
TestGetGeographicInformationLevelNumber passed
UnitTest.Report.WebREST failed
Skipping deleting classes
(root) failed

Use the following URL to view the result:
http://172.18.0.2:52773/csp/sys/%25UnitTest.Portal.Indices.cls?Index=1&$NAMESPACE=USER
Some tests FAILED in suites:

errors trying to view dashboard

After running 'yarn start' the localhost:3000 page is opened, a dashboard page appears very briefly then the below errors are displayed.

image

image

image

running yarn

You need to add a requirement that nodejs be installed locally and that you also need to have the yarn package manager via
npm install --global yarn

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.