Skip to content

React application to determine the type of the triangle based on its sides.

Notifications You must be signed in to change notification settings

lucaspal/triangle-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triangle app

Simple web application bootstrapped with Create React App to determine the type of a triangle based on its sides.

It makes use of UI components from the Tradeshift UI library (https://github.com/Tradeshift/tradeshift-ui).

Usage

To run this application please clone the repository with git clone <repo_address> or download it manually. After that run one of the following, it requires npm installed.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.

npm run build

Builds the app for production to the build folder.
It bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.

Project structure

The project structure follows the guidelines from React and it looks like the following:

triangle-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   ├── favicon_tradeshift.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── index.css
    └── index.js 
    └── components
    │   ├── Header.js
    │   ├── Note.js
    │   ├── Side.js
    │   └── SideForm.js 
    └── tests
        ├── App.test.js
        ├── Header.test.js
        ├── Side.test.js
        └── SideForm.test.js

The public folder contains the index.html, entry point for this application. Furthermore, it contains the manifest.json, providing meta-data when the web app is installed on a user's mobile device or desktop. The src folder contains the source code of the application, including the tests, in the tests folder. The main component is the App component, top node of this app. Other components are inside the components folder.

More information and considerations can be found in the relative subdirectories.

About

React application to determine the type of the triangle based on its sides.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published