Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(codegen): INFRA-316 update app00 template and add backend miniapp template #4708

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

nomerdvadcatpyat
Copy link
Member

@nomerdvadcatpyat nomerdvadcatpyat commented May 7, 2024

  1. Updated app00 template – now it's app with keystone and next (hosted by keystone), like pass miniapp
  2. Created app01 template – it's backend-only app template. In future we need to separate frontend app from backend app for start frontend apps on new next versions

Now for start local miniapp development, you need to:

  1. Go to /condo
  2. yarn createapp test-app. If you want to create keystone + next app, you need to add --type=legacy-keystone-next flag, if you want to create only keystone app use --type=keystone flag
  3. yarn install
  4. node ./bin/prepare --https --filter=test-app

@nomerdvadcatpyat nomerdvadcatpyat added the 🔬 WIP Not intended to be merged right now, it is a work in progress label May 7, 2024
@nomerdvadcatpyat nomerdvadcatpyat changed the title refactor(codegent): INFRA-316 update app00 template and add backend miniapp template refactor(codegen): INFRA-316 update app00 template and add backend miniapp template May 7, 2024
@Alllex202
Copy link
Contributor

What about template for Next JS only?

@nomerdvadcatpyat nomerdvadcatpyat removed the 🔬 WIP Not intended to be merged right now, it is a work in progress label May 13, 2024
@nomerdvadcatpyat
Copy link
Member Author

What about template for Next JS only?

It's out of this pr scope

}

module.exports = {
CondoOIDCMiddleware,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be we need some open-condo/oidc package?

Copy link
Member

@toplenboren toplenboren May 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is even a todo by @Alllex202 if Im not mistaken :-D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is even a todo by @Alllex202 if Im not mistaken :-D

I don't remember such a task :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you decide to put this logic in a separate package, then keep in mind that each miniapp may have its own unique logic

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you decide to put this logic in a separate package, then keep in mind that each miniapp may have its own unique logic

why would you want to have unique oidc auth logic (especially for our home-cooked miniapps?)

@nomerdvadcatpyat nomerdvadcatpyat force-pushed the refactor/infra-316/update-backend-miniapp-template branch from 4cfe759 to f849ef7 Compare May 30, 2024 16:24
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add todo to use it in all existing miniapps

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not bin script?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not bin script?

I think it's better to keep the schema generation files in the codegen package, rather than in the root bin, so that the miniaps are not dependent on the root bin. (The truth is now in the package.the json miniap runs a lot of things from the root bin)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about putting this in a separate package?
This really does seem like repetitive logic

Copy link
Member Author

@nomerdvadcatpyat nomerdvadcatpyat Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that everything about putting the oidc in a separate package is a separate task, this task has already grown so much. Added task and pass TODO here

@nomerdvadcatpyat nomerdvadcatpyat force-pushed the refactor/infra-316/update-backend-miniapp-template branch from f849ef7 to 01ff192 Compare June 13, 2024 06:36
Copy link

sonarcloud bot commented Jun 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants