An open API service indexing awesome lists of open source software.

https://github.com/darkmortal/deyz-calculatorz

This was my very first react-app so the code is a bit messy
https://github.com/darkmortal/deyz-calculatorz

dsa-algorithm matrices react

Last synced: 3 months ago
JSON representation

This was my very first react-app so the code is a bit messy

Awesome Lists containing this project

README

          

# React Webapp using Webpack and Tailwind

To start a react app

npx create-react-app appname

Command to install the rest of the required packages and add them as dev-dependencies

npm install -D tailwindcss postcss autoprefixer
Command to generate postcss.config.js and tailwind.config.js

npx tailwindcss init -p
Compiling a css file to an equivalent browser-understandable css file:-

npx tailwindcss -i ./public/styles/input.css -o ./public/styles/tailwind.css
This setup will traverse through all the files and folders listed in the content of tailwind.config.js and load only those Tailwind CSS classes which are currently used by our app

All the rest of the dependencies are listed in the package.json file

## Key difference between npm and npx
npm is used to install and remove packages

npm is used to execute a package

## Building
Build the page using homepage:"." in Package.json
Then change the homepage according to the url structure
## Running Tests
The tests folder contains unit-tests written in mocha and chai. To run tests, use the command

npm test

> calculatorz@1.2.3 test
> npx mocha src/tests.mjs

Determinant
✔ should return -168

Complex Determinant
✔ should return -393+225i

Binary to Octal
✔ should return 53.46

Octal to Hexadecimal
✔ should return 91.FD

Base_18 to Base_25
✔ should return 5G8BLME.0

5 passing (18ms)

## Deploying the project

npm run deploy

## Screenshots
![Havel Hakimi](https://user-images.githubusercontent.com/67017303/223962531-3ae89d39-ee4f-4eb8-8d98-ce17f53c38be.png)
![Adjoint](https://user-images.githubusercontent.com/67017303/223962563-ac63f99c-337b-4f63-8e60-7cf805414ef2.png)