A client-server reactive application for currency exchange rate, created with Play! Framework, Java and MongoDB.
- Clone this repository.
- Install and configure MongoDB to listen the port 27017.
- Open a terminal and navigate to the project folder:
$ cd ./reactive-currency-exchange
- Import the database to create it:
$ mongoimport -d currency-exchange -c currency ./database.json
- Install JDK 1.8+.
- Install Play! Framework 2.4.x.
- Open a terminal and navigate to the server application folder:
$ cd ./currency-exchange-server
- Start the activator:
$ activator
- Run the application (it will download all the dependencies):
[currency-exchange-server] $ run
- Open the address in a browser:
http://localhost:9000
- It will return a "Forbidden" (403) message. The server layer is running.
- Open a new terminal and navigate to the client application folder:
$ cd ./currency-exchange-client
- Start the activator with the HTTP port 9001:
$ activator -Dhttp.port=9001
- Run the application:
[currency-exchange-client] $ run
- Open the address in a browser:
http://localhost:9001
- It will return the front-end of the application.