Skip to content

mykaarma/bitbattle-carsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

myKaarma bitbattle sample

Basic sample for initial setup of myKaarma bitbattle project.

How to setup?

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

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

Steps to run

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.

Code Walkthrough

Client

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

Back-end

How to make final docker image which needs to be submitted

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •