Git Product home page Git Product logo

robot-apocalypse-sampana's Introduction

ROBOT APOCALYPSE

How to Run This Application

Step 1: SetUp Maven (Ignore if already setup)

a) Install maven from here
b) Unzip maven and keep in C drive (you can keep any location. Path location will be changed accordingly).

Step 2: Download and install JDK and JRE

install JDK here
install JRE here

Step 3: Set JAVA_HOME and MAVEN_HOME environment in system environment variable

a) Open environment variable

open environment variable

b) Add MAVEN_HOME to environment variable

add MAVEN_HOME to environment variable

c) Add JAVA_HOME to environment variable

add JAVA_HOME to environment variable

Step 4: Set Path for maven and java in system environment variable

add JAVA_HOME and MAVEN_HOME to path

Step 5: Clone this project

Open CMD and run
git clone https://github.com/D-Alegria/robot-apocalypse-sampana.git

Step 5: Navigate to the directory in your terminal

Step 6: Run the Application in your terminal

a) Clean and Install

mvn clean install

b) Run

mvn spring-boot:run

APIS

Add Survivor

curl -L -X POST "http://localhost:8080/api/v1/survivor" ^
-H "Content-Type: application/json" ^
--data-raw "{ \"name\": \"Akon Zulu\", \"age\": 40, \"gender\": \"Male\", \"location\": { \"longitude\": 100.00, \"latitude\": 150.00 } }"

Update Survivor Location

curl -L -X PUT "localhost:8080/api/v1/survivor/location/15e41515-1aa3-4194-9435-" ^
-H "Content-Type: application/json" ^
--data-raw "{    \"longitude\": 1000.00,  \"latitude\": 1780.00}"

Report Infected

curl -L -X POST "localhost:8080/api/v1/survivor/report/infected" ^
-H "Content-Type: application/json" ^
--data-raw "{\"infectedUuid\": \"52aa13ab-de7c-4a7c-b450-208e4f5e4bab\",\"informantUuid\": \"998b76ef-7a09-4954-ad6f-fdb65c2508a5\"}"

Get All Robots

curl -L -X GET "localhost:8080/api/v1/robot"

Get current Report

curl -L -X GET "localhost:8080/api/v1/report"

robot-apocalypse-sampana's People

Contributors

d-alegria avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.