itsandreramon / TellMe-Backend

Spring back-end that has been built as part of the Java EE Technologies & Applications course at the University of Applied Sciences Brandenburg.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

TellMe-Backend

The REST backend for TellMe. Written entirely in Java using Spring Boot and Project Reactor.

Development

You can start the Spring Boot application in a variety of ways:

  1. Build a .jar from the sources and run it locally via the Java CLI
$ ./mvnw package
$ java -jar target/backend-0.2.jar
  1. Run it locally via the Heroku CLI
$ ./mvnw package
$ heroku local web

Accessing the Heroku Deployment

The Heroku deployment can be accessed via the following URL:

$ curl https://tellme-backend.herokuapp.com/

Docker

This project can be built as a Docker image.

  1. Create an image using:
$ docker build . --tag "backend-tellme" \
	--build-arg db_username="$TELLME_MONGODB_ATLAS_USERNAME" \
	--build-arg db_password="$TELLME_MONGODB_ATLAS_PASSWORD"
  1. Run the image using:
$ docker run -d -p 8080:8080 backend-tellme:latest

API

You can obtain a valid api key by decrypting the file using:

$ openssl aes-256-cbc -d -in release/serviceAccountKey.json.encrypted -k $KEY >> src/main/resources/serviceAccountKey.json

Please make sure to place the corresponding serviceAccountKey.json inside the src/main/resources folder.

About

Spring back-end that has been built as part of the Java EE Technologies & Applications course at the University of Applied Sciences Brandenburg.


Languages

Language:Java 98.8%Language:Dockerfile 1.2%