GithubHelp home page GithubHelp logo

xogito-assessment's Introduction

Xogito Project-User Application

This is a brief description of Project-User Spring Boot application.

Getting Started

These instructions will help you get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Java Development Kit (JDK) 8 or later
  • Spring Boot ~> 2.7.13
  • Apache Maven 3.6.0 or later
  • Your favorite IDE (e.g. IntelliJ IDEA, Eclipse, VS Code)

Database

  • H2
  • Derby

Project structure

This project consists of 1 deploy-able artefacts:

Deploy-able

  • xogito-assessment-1.0.0
+-- xogito-assessment
+-- .idea
+-- .mvn
|   +-- src/
|   +-- .gitignore
|   +-- pom.xml
+-- .gitignore
+-- pom.xml
+-- README.md

Local development

Run the below commands from the project root:

  1. Build the project
mvn -B  clean install --file pom.xml
  1. Open the dev environment application file using an editor of choice
vi application.yml
  1. credentials for the h2 database under the datasource section
datasource:
    username: admin
    password: admin
    url: jdbc:h2:mem:~/xogitoprojectdb
    
  1. Running the application
mvn spring-boot:run

Landing Page is localhost:9099 

1. Navigate to http://localhost:9099/xogito-assessment/swagger-ui/index.html# for swagger ui 
2. Then you are now able to start testing using the Try It Out option
  1. Navigate into the xogito-assessment/src/main/resources/
cd xogito-assessment/src/main/resources/
  1. Update dev profile with credentials for the H2 database under the datasource section
datasource:
    username: admin
    password: admin
    url: jdbc:h2:mem:~/xogitoprojectdb
  1. Navigate into xogito-assessment from the root directory in order to run the service
cd xogito-assessment
  1. Run the application
mvn spring-boot:run
  1. Access the application H2 database on the browser using the below url
localhost:9099/h2-console/

localhost:9090/h2-console/

Notes:

  • The service is exposed on http://localhost:9099 by default.
  • The openapi swagger is exposed on http://localhost:9099/xogito-assessment/swagger-ui/index.html# by default.
  • Spring Boot uses the application-*.yml file(s).

Improvements:

  • Improvements would be to deploy the jar in docker file
  • Expose usage of the Actuator to expose endpoints for tracing and checking endpoints health
  • Deploy application in AWS using ECR and managed through EKS
  • Store file or files in S3 Bucket

Deployment

Add additional notes about how to deploy this on a live system

Built With

Authors

License

This project is licensed under the Xogito License - see the Xogito.md file for details

xogito-assessment's People

Contributors

vance04real avatar

Watchers

 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.