Basic sample for initial setup of myKaarma bitbattle project.
These instructions will get you a copy of the project up and running on your local machine.
Install Docker Mac OS | Windows 10 | Other OS
Install mysql client - TablePlus | MySQL Workbench
Use MySQL Workbench for windows
Install git client - GIT
Install maven - Follow instructions here
Make sure to finally download the bin zip file(apache-maven-3.3.x-bin.zip) not the src zip file.
Run mysql server
docker run --restart=always -p 3306:3306 -d --name=mysql-server -e MYSQL_ROOT_PASSWORD=root mysql:5.7
Open TablePlus / MySQL workbench Use following configurations to connect to mysql-server
host - localhost
port - 3306
user - root
pass - root
Copy paste and run content of this file RawVehicleInventory.sql
Open command line tool
1. cd
2. mkdir myKaarma-bitbattle
3. cd myKaarma-bitbattle
4. git clone https://github.com/mykaarma/bitbattle-carsearch.git
5. cd bitbattle-carsearch
6. mvn clean package docker:build
7. docker run -p 2517:2517 --link=mysql-server:mysql_host --restart=always --name=bitbattle -d bitbattle-carsearch:latest
Open http://localhost:2517/bitbattle-2018.html
Ready to use!!
After making changes you can follow steps 5-7 again to test your changes.
Together responsible for layout/styling of webpage.
Technologies used: HTML CSS BOOTSTRAP
Functions/Logic to handle actions on client and calls rest endpoint for search results.
Technologies used: ANGULARJS
-
/src/main/java/com/mk/bitbattle/api/DealerServiceController.java Use this class to introduce API endpoints.
-
/src/main/java/com/mk/bitbattle/api/impl/DealerServiceImpl.java Use this class to write implementation/logic for the API endpoints.
-
/src/main/java/com/mk/bitbattle/api/db/DealerDBImpl.java Use this class to connect to database.
Go to project folder
Run following commands
mvn clean package docker:build
- to create docker image
docker save -o <destination path for tar file> bitbattle-carsearch
- to convert image to tar
Put the tar file from destination path to the final submission zip file along with other documents.