/journey-api

This Java-based Backend For Frontend (BFF) service is designed to seamlessly integrate with the Journeys Single Page Application (SPA), offering robust backend support for frontend operations.

Primary LanguageJava

GitHub Actions Workflow Status Release Documentation Docker Contributors Issues Pull Requests Stars Badge

Journey Rest API


This is a Java based Backend For Frontend(BFF) service which is built with Spring Framework. The service is designed mainly to handle requests from frontend Journeys Single Page Application(SPA).

The Service use MongoDB Atlas to persist data.

Since application uses geographical information, data is being stored in GeoJSON format with help of library Commons GeoJson.

Helpful Links

Getting Started

Please find below steps to setup and run application in your workstation.

Prerequisites

The service uses MongoDB for persistence. For Local development, Local MongoDB instance created with help of Docker CLI. So make sure you have installed Docker CLI or any other docker container tool.

Installation

  1. Download Repository
    git clone https://github.com/nramc/journey-api.git 
  2. Run Application with spring profile dev
    mvn spring-boot:run -Dspring-boot.run.profiles=dev
  3. Local MongoDB can be accessed in http://localhost:9090/ with help of Mongo Express
  4. To test REST resource, use IntelJ Http Client scripts available in src/test/resources/http-scripts/ directory.

Contributing

Any contributions you make are greatly appreciated.

If you like the project and have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add the AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Release new version

  1. Manually run Prepare Release Workflow with release version "MAJOR.MINOR.PATCH" e.g. 0.0.1
  2. The Workflow flow creates a new tag with provided release version vMAJOR.MINOR.PATCH e.g. v0.0.1
  3. The Workflow creates Release as well with release notes and make the release as latest
  4. As soon as new Release created, which triggers Release Workflow with release event
  5. The Release workflow build & test project after checkout
  6. When build successful, creates Docker image and publish it to Docker Hub
  7. Finally triggers Render webhook for deployment

Contact

Ramachandran Nellaiyappan Website | Twitter | E-Mail

Credits

Sincere Thanks to following open source community for their wonderful efforts to make our life much easier.

Show your support

Give a ⭐️ if you like this project!