Skip to content

excercise to practise commercial technologies such as spring-boot, junit, mockito, mongodb, wiremock, docker, testcontainters, redis. App deployed on AWS

Notifications You must be signed in to change notification settings

ppirog/JobOffers

Repository files navigation

Java Spring mongoDB redis Docker JUnit mocikto Testcontainers HTTP REST IntelliJ Auth0 Maven Lombok
AWS

Angular TypeScript CSS HTML

LIVEDEMO

CLICK LINK TO SEE ON YOUTUBE HOW APP WORKS: https://www.youtube.com/watch?v=-vTgTVoMRhs

CLICK LINK TO USE APP: http://ec2-3-79-167-135.eu-central-1.compute.amazonaws.com/login (currently disabled)

Frontend

Frontend to this app: https://github.com/ppirog/joboffers-front

Info

This apllication fetches job offers from an external service using a rest api and stores it in mongodb database.

Application was deployed on AWS. (instruction how to use it in LIVEDEMO section)
To boost time efficiency during making request redis db was added.

Fetching new offers is done by app automaticly using scheduler.

To use application user has to register, login and fetch JWT token

Then user can fetch data using endpoints:

  • GET /offers
  • GET /offers/{id}

Application enables adding offers manualy using endpoint:

  • POST /offers

All functionality are unit and integration tested.

Core

  • Java
  • Spring
  • MongoDb
  • Redis
  • Spring Security
  • Scheduler
  • Docker
  • JWT

Testing:

  • JUnit
  • AssertJ
  • Mockito
  • Testcontainers
  • Wiremock
  • MockMvc

Architecture

img

HOW TO USE IT FROM POSTMAN

Application was deployed on AWS. If you want to use deployed app use postman as in an example below BUT INSTEAD OF http://localhost:8080 add http://ec2-3-79-167-135.eu-central-1.compute.amazonaws.com:8000

http://ec2-3-79-167-135.eu-central-1.compute.amazonaws.com:8000/register
http://ec2-3-79-167-135.eu-central-1.compute.amazonaws.com:8000/token
http://ec2-3-79-167-135.eu-central-1.compute.amazonaws.com:8000/offers

Postman AWS

image

Postman Localhost

image image image image image

To start app go to go to file docker-compose.yml first and launch it

About

excercise to practise commercial technologies such as spring-boot, junit, mockito, mongodb, wiremock, docker, testcontainters, redis. App deployed on AWS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages