This application is a simple online calculator that evaluates arithmetic expressions. It only supports +, -, /, =. Other operations are not implemented. So don't try to calculate sin(x) on it.
- Download and install Java 8 from Oracle
- Run
java -version
to make sure that Java is intalled correctly. - Should report
java version "1.8.xx
. Ifjava 1.7
or earlier is reported: 1. Uninstall old java from your computer. 2. OpenMy Computer - Properties - Additional Properties - System Variables
, and specify Java 8 installation folder asJAVA_HOME
, e.g.JAVA_HOME = C:\Program Files\Java\jdk1.8.0_91\
- Download and install Maven from [https://maven.apache.org/].
- Open
My Computer - Properties - Additional Properties - System Variables
, and specify Maven installation folder asM2_HOME
and asMAVEN_HOME
, e.g.MAVEN_HOME = C:\Program Files\Maven
- Add path to
mvn.cmd
(e.g.C:\Program Files\Maven\bin
) to your path. - Run
mvn -version
to make sure that Maven is intalled correctly. - Clone this repository to your local folder, by running
git clone https://github.com/supersergey/calculator.git
- Enter the local folder and type
mvn exec:java
- Open
localhost:4567
in your web-browser. - You can register or login as a the pre-defined test user. login :
admin
, password:admin
Spring Ioc, SparkJava, Sql2o, Freemaker, Bootstrap, JUnit
Enjoy ;-)