Skip to content

A small micro-service designed to find journeys in its MySQL database.

Notifications You must be signed in to change notification settings

phedoreanu/journeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journeys

A small RESTful micro-service designed to find journeys in its MySQL database.

Testing

Install godog:

$ go get -u github.com/DATA-DOG/godog/cmd/godog 

and test the BDDs:

$ ./bin/bdds

Deployment

To build the Docker image run:

$ ./bin/docker

and deploy the resulting image i.e. phedoreanu/journeys:1.0.0.

Implementations details

This API has 2 RESTFul endpoints:

  • GET /journeys/driver/?driverID={driverID}
  • GET /journeys/location/?location={location}&start={start}&end={end}

Please check the features folder for example responses.

Note: Both {start} and {end} use this datetime format 2016-03-11 03:00:00

Explanations

  • Using github.com/olebedev/config for configuration based on ENV vars i.e ACTIVE_PROFILE=production
  • Docker script runs the BDDs before building the image

About

A small micro-service designed to find journeys in its MySQL database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published