This application helps to quickly build up the online presence for a Fruit shop / Any business. Current focus of the implementation is to demonstrate ability to deliver readable, maintainable and testable code in agile manner for organization.
Solution should be presentable and developer should be able to speak about approaches he/she took to take this in production environment.
Current implementation is limited to following use cases.
- Orders Service that’s able to receive simple orders of shopping goods via a REST API
- The shop decides to introduce various new offers
- The service should now store the orders that a customer submits
- Java 11
- Docker
- maven
- Intellij Idea IDE ( screen shots are from ultimate version)
Run docker-compose.yml file
Open the file in intellij and click on services.. it should create container and setup Mongo and Redis in that.
Just follow all default options.. you should be able to connect with Redis and Mongo DB for Docker running on your local
Run below commands for Mongo in Order
show dbs;
use fruits_shop;
db.createUser({
user: "admin",
pwd: "admin",
roles: [
{role: "readWrite", db: "fruits_shop"}
]
});
show dbs
Follow mvn clean install to build the project.
Current state of the project require Docker to run on your machine even for build as spins up the server and connects to Mongo and Redis for integration test cases.
Open the [gateway-service.run.xml](.run%2Fgateway-service.run.xml)
file. it contains Run configurations.
Just start with Intellij Run/Debug Application
you should see below log once server starts successfully.
20:20:10.048 [vert.x-eventloop-thread-1] INFO io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer - Succeeded in deploying verticle
Please use following prefixes to your git commits.
- feat – a new feature is introduced with the changes
- test - test cases are added to the modules
- fix – a bug fix has occurred
- refactor – refactored code that neither fixes a bug nor adds a feature
- docs – updates to documentation such as a the README or other markdown files