Git Product home page Git Product logo

jobportalbe's Introduction

JobPortalBE Build Status

Techstack:

  • BE: Java - Spring, Hibernate, maven, Postgresql
  • FE: Angular
  • Git: Github FE, Github BE
  • Ci/CD: TravisCi

Database

For instructions on quickly setting up a Postgres DB and PgAdmin in Docker, go to the "db" folder

Java

Java version required: 11

Zulu JDK is recommended, get it here.

Maven

Newer version of Maven have support for a Maven wrapper.

To build the project, all you need to do is:

./mvnw package

You might get an error: "ERROR: JAVA_HOME is not set" If you do, then set the JAVA_HOME environment variable to your JDK installation. For Zulu it's: "C:\Program Files\Zulu\zulu-11"

Lombok

In order to not get compilation errors in IntelliJ due to Lombok, it is recommended to install the Lombok plugin.

  • ctrl + alt + s
  • look for 'plugins'
  • search for 'lombok'
  • click on install

OpenAPI

With the help of the openapi generator plugin, code can be generated from simple OpenAPI Specs (written in either json or yaml). This makes development easier and faster, because the API specification is present in only one place, and code can be generated for both the FE and BE from this specification.

On the Server side the generated code includes the DTO (Data Transfer Objects) and the Server Stubs for the API.

On the Client side, the generated Code includes the DTOs and the calls to the server.

References:

In order to generate code from the OpenAPI specs, run the following command:

mvn clean generate-sources

The sources are generated under target/generated-sources/main/java/com/jobportal/openapi

The OpenAPI Specs are written in JSON and can be found under: src/main/resources/openapi

For an example, please look at:

  • src/main/resources/openapi/example.json
  • HelloController.java
  • WorldController.java

Branching concept

There are 3 types of branches:

  • feature branch: short lived, includes the implementation of a smaller feature, after the feature is complete, a PR is opened and it is eventually merged into main
  • main: main branch, all feature branches get merged into this branch
  • release: release branch, the CD build is started when there are changes on this branch.

Overview:

Branching

Ci/CD

Techstack:

  • Ci: Travis
  • Platform for deployments: Heroku

On each commit, the tests are ran.

On each commit of the release branch, the tests are ran, a docker image is created and pushed into the Heroku container registry, and the application is deployed to Heroku.

Overview:

Ci Concept

Creating a release version

The following steps need to be followed in order to create and deploy a new version:

jobportalbe's People

Contributors

andraspatka avatar sonyaparau avatar ghetap avatar fily1221 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.