Alex
Explore posts from servers✅ How would you store dynamic forms?
Hi! I want to make an application for building dynamic forms. There will be form template constructor for admin user and page for regular use for fill form. Form field has name, type (string, number, boolean), order index on the page. Administator can open filled form and see filled fields. Would you store form template as a json string in sql db, use mongo db or store in sql as [ table template(id, name, description) -> table template field (id, template_id, name, type, order)]? How would you store data that user filled into form?
20 replies
JCHJava Community | Help. Code. Learn.
•Created by Alex on 9/30/2024 in #java-help
jpa and postgresql
I can't find the reason of the error
application.yaml
pom.xml
5 replies
How to start test inside docker container from app?
Hi! I'm thinking of building an app similar to leetcode or codewars. The basic idea is user sends you task id and code and I should run tests on it somewhere. I think doing it in docker containers should work. Is it possible to start docker container and pass there input and then somehow get results? Is there a better solution?
38 replies
✅ e-commerce app
Hello, Can you help me with e-commerce product attributes concept, please? I want to build pet project and utilize this feature. But I don't know how to design database the right way, I've checked open source project - nopCommerce, but it's overwhelmed with other features that I won't have in my project. Maybe you have a simple database design with fields that I can start with. Basically I want to have variations of product and categories
21 replies
✅ e-commerce design
Hi, I want to create an eCommerce application. I want to be able to configure many variations of products, for example size, color, and etc. I think of product->variation->variation_option. The question is how can I handle different value types for variation option and filtering? For example,
size
can be a number from, color
- string, in-stock
- boolean1 replies
Recommend book/source
Hi, I know how to program small applications, but I want to learn how to build programs like file system explorer, task manager or notepad. Is there any book or source that teaches you system/application design and building with examples I mentioned about? I want to understand how to build application right way, and how they function.
8 replies
✅ Refresh Token + JWT + Identity
Hi! I can't find a way how to implement refresh token part with Identity. Most tutorials online don't use Identity and write their own implementation. Should I extend identity user or is there a better way? I want to learn how it can be done the right way.
6 replies
✅ Web API redirect back to client
I have a GET route that handles external authentication. On the client I have anchor
<a href="myapi:8080/sign-in/external/Google">Google</a>
to sign in with Google. If authentication is successful I want to return cookie (I'll change it later) and redirect back to client. I have one option to provide returnUrl
but I'm not sure if it is a right solution. How can I do it?
1 replies
✅ How to get Options from DI
I configured options for google authentication
CliendId
and ClientSecret
.
Here I want to get them from ServiceProvider
but I don't know how. Should I create ServiceProvider
var provider = builder.Services.BuildServiceProvider();
?
14 replies
✅ Malformed input: 321 is an invalid input length
I'm working with Asp.Net Core Identity. I use
GeneratePasswordResetTokenAsync(user)
to generate token and encode it with WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(token));
. Next I decode encoded token with Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(encodedToken))
and get exception:
How can I fix my problem?1 replies
✅ Store data for the game
How can I efficiently store lines for the picture player draws? Each line contains color, line width and points (x,y). I have a group object that will have array of drawn linesбword players need to guess and state "drawing","choosing word", "idle". I need the data for players who join after the round started. I need the data between signalR calls
1 replies