wkrzywiec / kanban-board Goto Github PK
View Code? Open in Web Editor NEWSingle-click full-stack application (Postgres, Spring Boot & Angular) using Docker Compose
Single-click full-stack application (Postgres, Spring Boot & Angular) using Docker Compose
Kanban-board's web application throws an exception when trying to create a new kanban through kanban-ui.
Steps to reproduce:
clone repository
launch the application through docker-compose
open kanban-ui (http://localhost:4200)
click on the button "+ Create Kanban"
Fill in a title and click on the button "Save"
Outcome: nothing happens
Checking the logs outputted by kanban-app shows the following exception:
org.postgresql.util.PSQLException: FATAL: role "kanban" does not exist
HI @wkrzywiec , I have an error when Using JDK 11.
I am using this Dockerfile:
FROM maven:3.6.3-jdk-11-slim AS build
MAINTAINER Hendi Santika "[email protected]"
RUN mkdir -p /workspace
WORKDIR /workspace
COPY pom.xml /workspace
COPY src /workspace/src
RUN mvn -f pom.xml clean package
FROM adoptopenjdk/openjdk11:alpine-jre
COPY --from=build /workspace/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar","/application.jar"]
The error as follow:
org.postgresql.util.PSQLException: The connection attempt failed.
Caused by: java.net.UnknownHostException: ${DB_SERVER}
Do You have any suggestion to fix ${DB_SERVER} running?
Thanks
Hi, i clone your project to use the kanvan board (I run the project on Mac and Ubunut virtual Machine x86 architecture), but when i type docker-compose up the step 6 on the first docker file fails as follow:
Step 6/10 : RUN npm run build
---> Running in 8d05f88f96ce
[email protected] build /usr/src/app
ng build --prod
Schema validation failed with the following errors:
Data path "" should NOT have additional properties(es5BrowserSupport).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: ng build --prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-28T14_36_37_649Z-debug.log
ERROR: Service 'kanban-ui' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 1
Thanks a lot for your attention, and i wait some idea of solve the error.
When creating a Kanban or New Task, it doesn't update the page. Hitting refresh shows the new items. Shouldn't the new items be seen after clicking "Save" in the dialog?
Apologies in advance, I am not a webdeveloper. I am trying to get this application running on Mac catalina via docker, however it seems quite a few dependency issues pop-up.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended
Cannot download "https://github.com/sass/node-sass/releases/download/v4.10.0/linux_musl-x64-72_binding.node" -- I went to Github, there is no "72" version, highest I believe was 67?
Finally, this last one that looks like the node-gyp version needs updated (due to Python 2 EOL):
gyp ERR! System Linux 4.19.76-linuxkit
gyp ERR! command "/usr/local/bin/node" "/usr/src/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/src/app/node_modules/node-sass
gyp ERR! node -v v12.7.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
I would be more than happy to try to troubleshoot/test anything if that helps? I am just not sure where to edit the package calls without breaking everything!
First of all, thanks for the great opportunity to work and practice with a real and useful application.
I tried to run this application on a k8s cluster that was deployed with vagrant (https://github.com/scriptcamp/vagrant-kubeadm-kubernetes).
I created containers from the provided Docker files in that repository and placed them in my dockerhub repository.
I then modified the docker-compose file as shown in the example below:
version: '3'
services:
kanban-postgres:
image: `postgres:9.6-alpine'
container_name: kanban-postgres
volumes:
- kanban-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_DB=kanban
- POSTGRES_USER=kanban
- POSTGRES_PASSWORD=kanban
kanban-app:
image: "martold/itmo:app_v1.1"
container_name: kanban-app
environment:
- DB_SERVER=kanban-postgres
- POSTGRES_DB=kanban
- POSTGRES_USER=kanban
- POSTGRES_PASSWORD=kanban
ports:
- 8080:8080
references:
- kanban-postgres
kanban-ui:
image: "martold/itmo:webui_v1.1"
container_name: kanban-ui
ports:
- 4200:80
references:
- kanban-app
volumes:
kanban-data:
I used the kompose application to create the yamls for the cluster.
Finally, the cluster was started with nodeport functions and port forwarding in VirtualBox.
Webui and swagger can be accessed on my local host:
http://localhost:8080/
http://localhost:8082/api/swagger-ui.html#
Problem:
Whenever I try to make a POST or PUT request, I get a 403 response if I use webui.
If I repeat the request from swagger, everything is fine and I can see the changes in webui.
Can you please explain to me why this is happening and how I can solve this problem?
Any help would be appreciated!
i used this app.propetie file and i didnt found the metrics endpoints
server.servlet.context-path=/api
spring.datasource.url=jdbc:postgresql://${DB_SERVER}/${POSTGRES_DB}
spring.datasource.username=${POSTGRES_USER}
spring.datasource.password=${POSTGRES_PASSWORD}
spring.liquibase.change-log=classpath:/db/changelog/db.changelog-master.xml
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
management.endpoints.web.exposure.include=*
management.endpoint.metrics.enabled=true
// those are the exposed endpoints and i cant find the metrics endpoint
{
"_links": {
"self": {
"href": "http://localhost:8080/api/actuator",
"templated": false
},
"health-component": {
"href": "http://localhost:8080/api/actuator/health/{component}",
"templated": true
},
"health": {
"href": "http://localhost:8080/api/actuator/health",
"templated": false
},
"health-component-instance": {
"href": "http://localhost:8080/api/actuator/health/{component}/{instance}",
"templated": true
},
"info": {
"href": "http://localhost:8080/api/actuator/info",
"templated": false
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.