hoangnam2261 / trackGPS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPS Track

A simple way to store and share GPS track online

This is a proof-of-concept version using Spring Boot, Spring JPA, Spring Security.

Functional service

Because this is a prototype version, GPS Track focus on only 1 WS API: GPS API.

Service

GPS Service

Allow users to upload "gpx" file and store mandatory information such as "metadata, waypoint, track", view a list of "Latest track" from our users and allow users to view details of their gpx file.

Method Path Description User authenticated
POST /gpx/uploadFile Upload "gpx" file ×
GET /gpx/{gpxId} Get gpx file for view details
GET /gpx/latest?pageSize={pageSize}&offset={offset} View a list of latest tracks

Notes

  • In this project, I use H2 as a primary database for gps service. It is very easy switching to another database by change configuration.

System diagram

System

Authentication

In this project, for simplicity, I use basic authentication for API endpoint /gpx/uploadFile. Only logged in users can upload the gpx file. I create a demo account with the credential:

User: hoangnam2261

Password: 123456

Upload file flow

Upload file flow

Get latest tracks

Get latest tracks

View the details of track file

Details of track

About


Languages

Language:Java 100.0%