Git Product home page Git Product logo

dancer's Introduction

Dancer

This is the backend (for frontend) for dancier.

Working locally

We are working locally with a docker-compose setup, that launches every needed service.

Before you run it the first time, you have to set this up....

Setting everything up

You have to have maven, docker and docker-compose being installed.

Then in the project root folder create the following directories with the proper rights.

# for the pg-admin volume
mkdir -p volumes/pg-admin-data
sudo chown 5050:5050 volumes/pg-admin-data

# for the kafka volume

mkdir -p volumes/kafka
sudo chown 1001:1001 volumes/kafka

You can now access the database GUI with your browser:

PG-Admin

User Pass
[email protected] secret

Here you can configure the connection to the postgres instance:

Hostname database user pass
dancer-db dancer dancer dancer

Building and running the dancer

Without test and update the running docker environment

(assuming the docker-compose setup is up and running)

./mvnw clean install -DskipTests; docker-compose up --build -d dancer

Building with tests

./mvnw clean install

running the dancer not inside docker-compose

(assuming the docker-compose setup is up and running)

# stopping dancer in docker-compose
docker-compose stop dancer;
# running the boot app with overwriting the needed host
./mvnw spring-boot:run -Dspring-boot.run.arguments="--spring.datasource.url=jdbc:postgresql://localhost:5432/dancer

checking test-coverage

Show test coverage in target/site/jacoco/index.html: `.target/site/jacoco/index.html

Accessing the API-Definition

OpenApi

Local Mailing

When working locally the mailing-system of the backend is configured to not send the mails, but to dump them only to the log. This is achieved by using spring profiles. The profile here is 'dev'. So make sure to not change the profile unintentionally.

About the staging environment

As long as we are not live, this is the only other environment next to working locally. The corresponding Profile is 'staging'

Mailing in the Staging Environment

Mail will be send via an SMTP-Server. But the target addresses of all mails are rewritten to always go to a configurable mail-address.

dancer's People

Contributors

gorzala avatar halbekanne avatar jans510 avatar jensschulze2020 avatar manuela2013 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

manuela2013

dancer's Issues

Update openapi to reflect current state

We have currently at least those endpoint, that need a proper documentation to enable the frontend team to work well:

/profile (GET and POST)
/image (GET and POST)
/login (GET)

Build of frontend doesn't work on Windows

Maven runs "npm build", which in turn runs the script from the package.json which contains the Unix-specific command "mv" instead of the Windows-specific command "move". This prevents the project to be built on Windows machines.

Own cloud is not working

Own cloud server is not available.

Impact

  • Working together on documents not possible.
  • TODO tasks can not be updated
  • Files are not accessable
  • Can not access calendar

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.