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
- Host: GitHub
- URL: https://github.com/darkmortal/deyz-calculatorz
- Owner: DarkMortal
- License: bsd-2-clause
- Created: 2023-03-09T08:07:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-01T14:32:08.000Z (almost 3 years ago)
- Last Synced: 2025-06-09T11:06:46.928Z (about 1 year ago)
- Topics: dsa-algorithm, matrices, react
- Language: JavaScript
- Homepage: https://darkmortal.github.io/Deyz-Calculatorz/
- Size: 15.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

