"Math magicians" is a website for all fans of mathematics. It is a Single Page App (SPA) that allows users to: - Make simple calculations. - Read a random math-related quote. Built with React and pure CSS

  • By Roberto Andres Condezo Monge
  • Last update: Mar 31, 2022
  • Comments: 5

Math magicians

  • "Math magicians" is a website for all fans of mathematics. It is a Single Page App (SPA) that allows users to:

    • Make simple calculations.
    • Read a random math-related quote.

Screenshots:

  • mobile version

screenshot

  • Desktop version

screenshot

Built With

- Major languages:

  • HTML
  • CSS
  • JavaScript
  • React

- Technologies used:

  • npm
  • Webpack

Learning objectives

  • Set up a React app.
  • Use React documentation.
  • Use React components.
  • Use React props.
  • Use React state.
  • Handle events in a React app.
  • Use React life cycle methods.
  • Understand the mechanism of lifting state up.

Live Demo

Math magicians Live Demo Link

Getting Started

  • In order to see the portfolio in your browser you must click on the link "Live Demo"

  • To get a local copy up and running follow these simple example steps:

Prerequisites

  • Node
  • npm

Setup

  • Clone the repository with the command:

$ git clone https://github.com/andres-condezo/math-magicians.git

$ cd math-magicians


  • To install the dependencies run:
$ npm Install

Available Scripts

In the project directory, you can run:

npm start

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

The page will reload when you make changes.
You may 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 correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

Authors

👤 Andrés Condezo Monge

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.

Github

https://github.com/andres-condezo/math-magicians

Comments(5)

  • 1

    Math-magicians Milestone 5: Full website

    Math-magicians Milestone 5: Full website

    Hi there :wave:

    Thanks for taking the time to review my project.


    Changes

    In this milestone:

    • I Created 3 pages: Home, Calculator, and Quote with their own styles importing CSS files.
    • For every page, I created a route

    Get Started

    Visit live demo : • Math Magician Live Demo Link

    or:

    Clone the repository : • $ git clone https://github.com/andres-condezo/math-magicians.git$ cd math-magicians$ git checkout full-website$ npm install$ npm start


    Any comment or suggestion will be thankfully received.

  • 2

    Math-magicians Milestone 4: Refactor with hooks

    Math-magicians Milestone 4: Refactor with hooks

    Hi there :wave:

    Thanks for taking the time to review my project.


    Changes

    In this milestone:

    • I refactored the Calculator component from a class-based component to a functional component with hooks.

    Get Started

    Visit live demo : • Math Magician Live Demo Link

    or:

    Clone the repository : • $ git clone https://github.com/andres-condezo/math-magicians.git$ cd math-magicians$ git checkout components$ npm install$ npm start


    Any comment or suggestion will be thankfully received.

  • 3

    Math-magicians Milestone 3: Add events

    Math-magicians Milestone 3: Add events

    Hi there :wave:

    Thanks for taking the time to review my project.


    Changes

    In this milestone:

    • I copy the files calculate.js and operate.js into an src/component/logic/ directory.
    • Implemented an event handler to use the math logic from calculate.js and operate.js in my calculator component.

    Get Started

    Visit live demo : • Math Magician Live Demo Link

    or:

    Clone the repository : • $ git clone https://github.com/andres-condezo/math-magicians.git$ cd math-magicians$ git checkout components$ npm install$ npm start


    Any comment or suggestion will be thankfully received.

  • 4

    Math-magicians Milestone 2: Components

    Math-magicians Milestone 2: Components

    Hi there :wave:

    Thanks for taking the time to review my project.


    Get Started

    Visit live demo : • Math Magician Live Demo Link

    or:

    Clone the repository : • $ git clone https://github.com/andres-condezo/math-magicians.git$ cd math-magicians$ git checkout components$ npm install$ npm start


    Changes

    In this milestone:

    • I deleted all the boilerplate from CRA.
    • I created a directory called components and created a new Calculator.js file.
    • In Calculator.js, I created a React component that matches the original design using class-based components.
    • I developed the calculator UI.

    Any comment or suggestion will be thankfully received.

  • 5

    Math-magicians Milestone 1: Setup

    Math-magicians Milestone 1: Setup

    Hi there :wave:

    Thanks for taking the time to review my project.


    Get Started

    Visit live demo : • Math Magician Live Demo Link

    or:

    Clone the repository : • $ git clone https://github.com/andres-condezo/math-magicians.git$ git checkout setup$ npm install$ npm start


    Changes

    In this milestone I:

    • Set up a React app.

    Any comment or suggestion will be thankfully received.