-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: koa integration #123
base: master
Are you sure you want to change the base?
Conversation
…ll of them when selecting backends
04b6027
to
4a09207
Compare
lib/ts/config.ts
Outdated
(flags.frontend !== undefined && flags.frontend.startsWith("next")) || | ||
(answers.frontend !== undefined && answers.frontend.startsWith("next")) | ||
) { | ||
// This means that they want to use nextjs fullstack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about other types of fe like astro / remix etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this checking required? I had give this checking because it was also in backendPython, but as we are checking
near line no 586
return !shouldSkipBackendQuestion(answers, flags);
will skip backend question if it is full-stack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works functionally with that code however the code needs to be better organised so that the flow is simpler.
Essentially, the backend frameworks should be part of the backend object so that if the user selects the node
option, the code picks up the nested options from that object directly instead of keeping another one called NodeJSFrameworks
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wrong problem will occur when someone will run something like
npx create-supertokens-app --appname=my-app --recipe=emailpassword --frontend=remix --backend=python
it will ask for which backend framework in python , but for --frontend=next
the option to choose backend framework will not come, updating..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rishabhpoddar please re-review
lib/ts/types.ts
Outdated
id: "koa", | ||
}, | ||
{ | ||
id: "express", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to have two levels of ids here. The backend should just have node, and then there should be a nodeframework thing which will have koa, express, nest. I know that python one doesnt work this way, but we need to do this correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Check if it is the structure we need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rishabhpoddar is this the structure we wanted?
…edOnFlags due to allBackend structure change;
Summary of change
Added Koa to the backend framework list.
Checklist for important updates
package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
Recipe
andallRecipes
SupportedBackends
andallBackends
if required