mraible / 21-points Goto Github PK
View Code? Open in Web Editor NEW❤️ 21-Points Health is an app you can use to monitor your health.
Home Page: http://www.21-points.com
❤️ 21-Points Health is an app you can use to monitor your health.
Home Page: http://www.21-points.com
The test comments describe what needs to be done:
The selected authentication mechanism and Spring WebSockets don't work well together as is stated in their documentation (https://jhipster.github.io/using_websockets.html).
On login I get an Access-Denied-Exeption for the websocket in the console.
The problem was discussed here:
jhipster/generator-jhipster#1370
It seems to be fixed for OAuth2 as is stated there , but currently not for XAuth.
This is probably just me and my lack of never having learnt a proper english.
If the ultimate target is to reach 21 points then I would have to enjoy a nice dark ale all 7 days in the week to get to the max of 7 x 3 points. Probably not the most healthy option ;-) and during summer time I would not mind.
Maybe it's just a matter of wording.
What about changing the question from "Did you drink?" to "No alcohol consumed?"?
Otherwise not checking the checkbox "Did you drink?" should count as a good thing and add to the total points.
This means that someone who is authenticated can grab all the users with their emails. This is not good for security.
I've had some sucess with jhipster building a couple of small demos yet I am having trouble building 21points.
29> ./gradlew
:generateMainMapperClasses
:compileJava
:compileScala UP-TO-DATE
:bower
:processResources
:classes
:findMainClass
:bootRun
[INFO] org.jhipster.health.Application - Starting Application on MainMac.local with PID 70659 (/Users/mattkraus/web/21-points/build/classes/main started by mattkraus in /Users/mattkraus/web/21-points)
[DEBUG] org.jhipster.health.Application - Running with Spring Boot v1.2.5.RELEASE, Spring v4.1.7.RELEASE
[DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
[DEBUG] org.jhipster.health.config.AsyncConfiguration - Creating Async Task Executor
[DEBUG] org.jhipster.health.config.MetricsConfiguration - Registering JVM gauges
[INFO] org.jhipster.health.config.MetricsConfiguration - Initializing Metrics JMX reporting
[DEBUG] org.jhipster.health.config.DatabaseConfiguration - Configuring Datasource
[ERROR] org.springframework.boot.context.embedded.tomcat.TomcatStarter - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException
[WARN] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:474) ~[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.jhipster.health.Application.main(Application.java:72) [main/:na]
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:98) ~[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:75) ~[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:378) ~[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletCr(TomcatEmbeddedServletContainerFactory.java:155) ~[spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:157) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) [spring-boot-1.2.5.RELEASE.jar:1.2.5.RELEASE]
... 5 common frames omitted
Line 72 in Application.java is: Environment env = app.run(args).getEnvironment();
/**
* Main method, used to run the application.
*/
public static void main(String[] args) throws UnknownHostException {
SpringApplication app = new SpringApplication(Application.class);
app.setShowBanner(false);
SimpleCommandLinePropertySource source = new SimpleCommandLinePropertySource(args);
addDefaultProfile(app, source);
addLiquibaseScanPackages();
Environment env = app.run(args).getEnvironment();// Line 72
log.info("Access URLs:\n----------------------------------------------------------\n\t" +
"Local: \t\thttp://127.0.0.1:{}\n\t" +
"External: \thttp://{}:{}\n----------------------------------------------------------",
env.getProperty("server.port"),
InetAddress.getLocalHost().getHostAddress(),
env.getProperty("server.port"));
}
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
When you run your application, Spring Boot will detect that you have a Spring MVC controller and start up an embedded Apache Tomcat 7 instance, by default.
From IntelliJ, 61 tests pass successfully.
I'm on OS X v10.11.1.
Thanks
I tried resetting my password, but, it doesn't work. Actually, I was trying to use it for my health.
I have 2 questions:
Why is pointsListModification only broadcast from the PointsDeleteDialog component? Should it be broadcast elsewhere too? (for example in create() in PointsService)?
I am trying to understand how the content in home.component.html is shown when the application is accessed initially. I don't see a route for it in app-routing.module.ts and I don't see a jhi-home tag in any of the html templates. How does this work?
And force HTTPS too!
Pertains to BloodPressure and Weight entities.
On list and view screens, time appears to be in UTC. On edit screen, it's in the correct timezone. Change list and view screens to match edit screen.
Speed for mobile: 64/100
https://developers.google.com/speed/pagespeed/insights/?url=21-points.com
Hello,
I’m not able to sign in. After the registration page, I click on the URL, then I input the correct password but always the same error message “Failed to sign in! Please check your credentials and try again.”
I had the same error trying to resetting the password.
BR
Login and registration fail every-so-often and it seems to be caused by the sequence keys in some of the auditing tables:
2017-12-19T02:44:25.564551+00:00 app[web.1]: 2017-12-19 02:44:25.564 WARN 4 --- [ XNIO-2 task-26] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: 23505
2017-12-19T02:44:25.564734+00:00 app[web.1]: 2017-12-19 02:44:25.564 ERROR 4 --- [ XNIO-2 task-26] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: duplicate key value violates unique constraint "pk_jhi_persistent_audit_event"
2017-12-19T02:44:25.564737+00:00 app[web.1]: Detail: Key (event_id)=(42094) already exists.
2017-12-19T02:44:25.565215+00:00 app[web.1]: 2017-12-19 02:44:25.565 ERROR 4 --- [ XNIO-2 task-26] o.h.i.ExceptionMapperStandardImpl : HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute statement]
2017-12-19T02:44:25.567741+00:00 app[web.1]: 2017-12-19 02:44:25.567 ERROR 4 --- [ XNIO-2 task-26] o.j.h.w.rest.errors.ExceptionTranslator : An unexpected error occurred: could not execute statement; SQL [n/a]; constraint [pk_jhi_persistent_audit_event]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
2017-12-19T02:44:27.820781+00:00 heroku[web.1]: Process running mem=523M(102.1%)
2017-12-19T02:44:27.820897+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2017-12-19T02:44:25.571359+00:00 heroku[router]: at=info method=POST path="/api/authenticate" host=www.21-points.com request_id=b54f7527-7479-42ee-acaa-d6794567c118 fwd="75.171.150.21" dyno=web.1 connect=0ms service=156ms status=500 bytes=550 protocol=https
Question posted to Stack Overflow on December 19, 2017.
They should be a heart. This might require an update to the mini-book as well.
Adding preferences, if Weekly Points Goal is below min required value (10) the error message "translation-not-found[error.Min]" is shown. It seems that there should be a i18n message for "error.Min" key.
The same happens with "error.Max" if value above defined maximum (21).
Seems like jhipster does not generate those messages and some manual steps must be done on applications using Min and Max validations.
PS: Project just downloaded from repo, built and run.
Match what's on the homepage:
This happens on Heroku:
#!shell
2015-09-28T22:48:48.266121+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=POST path="/api/register?cacheBuster=1443480498251" host=www.21-points.com request_id=3f3f9c84-592a-43b5-b2d0-f7338dbd3e96 fwd="50.205.250.184" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0
I clicked register a 2nd time and it gave me a duplicate key error, implying that the first time actually did work. Then I received an activation email about a minute later. Investigate to see why registration is taking so long.
Thanks for develop 21 Points based on JHipster, incredible sample thought !
For CRUD I'd like conventional window, which it using same window with parent instead of a pop-up window.
Could you show me how to doing this ?
thanks in advance @mraible
To reproduce the attached report, go to https://www.21-points.com, log in, then run Lighthouse.
v7 doesn't currently have one. It should look like https://www.21-points.com/#/about.
Text boxes zoom when clicked on - make font 16px to fix
Progress bar is off the screen
Heart logo is too big on homepage
The value stored in the database is 2018-11-13 13:06:00
. However, the same value returned from the API on 21-points.com is "timestamp":"2018-11-13T13:06:00Z"
. When I run things locally, the value is "timestamp":"2018-11-13T13:06:00-07:00"
. It seems I might need to change something on the server so it doesn't add the timezone.
Authentication and change password tests. Verify titles on other pages.
Should be heart logo, not JHipster’s.
This will allow past goals and weekly ratings to remain accurate and give you the ability to set new goals.
UI Calendar looks like an easy way to do this:
http://angular-ui.github.io/ui-calendar/
I can not find Maven pom.xml or Gradel build file.
Can you commit please?
Thank You
After we add bootstrap-material-design the ripples.css and ripple.js are already included on the project, but still cannot make the buttons have ripple effect. How to enable ripple effect for the buttons?
Hi Matt,
First of all, good work on 21-points. Been using your project to learn up on JHipster and it really helps.
Anyway, was going through the code and it occurred to me that even if I'm logged in as myself (john), and if I go to "Daily Points" and do a search with the following search parameter - o*, all points that match that parameter will appear. Not just mine. (See screenshot below)
I was even able to edit the fields of a Point entry that belongs to others and save successfully. (I reverted what I edited so as not to tamper with other user's data).
So there are 2 issues here -
This is currently missing from v7.
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.