- Install needed dependencies
-
Run the following command to install node modules
npm install
-
Run the following command to run the project
gulp
-
Open
localhost:3000
to see the result.
- Run
gulp build
to build a distribution version.
-
Copy all files in dist folder and place them inside your project.
-
Embed Calculator's html code to your html file, don't forget to import main.min.js and main.min.css as well.
- Please find the live demo here.
- Fail to calculate a mix of operators
- For example: 3-2*4 should be -5, rather than 4 since I haven't implemented order of operations yet.
- Lack of many functions: supporting negative numbers, decimal numbers, etc.