Replies: 3 comments 3 replies
-
I was going to open up a separate discussion for a few thoughts that I have been having after talking with Anu on Friday and working on the github backed example, but turns out this is a nice place to put those, so apologies for the wall of text, I tried to be as concise as possible. Obs: Sorry if there are some typos Examples should be self sufficientI think the current repo is not setup in the best way to allow a quick creation and deployment of a data portal by normal users. The reason being Summary if you don't want to read everythingEvery example becomes a full fledged app with its own Pros:
Cros:
What we have nowIf a user wants to have it's own data portal, currently he needs to fork and clone the entire repo, create an example inside the Imagine he wants to create an portal using the
But it gets worse, imagine this user wants to deploy the app to Vercel, he will not only need to make all of these overrides. What i think we should have
Why this is the way it is?The reason because of that is that we are using On This of course has a number of advantages, you get only one version of a package for every app, meaning you will have an easier time making sure that everything stays up to date, you will only need to do one Problem is, now your app lives in some kinda of life support environment, meaning that it can't live outside, its bound by Whats my proposalSimple, we keep everything inside the same repo, but we stop using In the future, if we start having shared libraries, and we want to use those in the examples, firstly we will need to publish those to npm and only then we will be able to add those as dependencies to the We would also need to turn the What is Vercel doing?If you are not convinced by my appeals, thats fine, but take a look into the Vercel Next.JS Repo if you take a closer look at its content, this is in fact a monorepo, the only difference is that its using Turbo, but if you look at their examples folder, none of the examples are actually part of the monorepo, they are stored there, but if you want to use them you will need to go to the specific file, run Some extra thoughtsMost of the stuff written here was thought out after i talked with Anu on friday and he told me how the previous experience of PortalJS as a components library was not of the best. And that now(at least on a first moment) the focus of this repo should be on having a list of comprehensible examples that can be used to quickly create a data portal. |
Beta Was this translation helpful? Give feedback.
-
I would generate job stories and personas a bit here ... As a quick start (i can write more later)
|
Beta Was this translation helpful? Give feedback.
-
When a user gets to the Portal.JS website, what is he going to be looking for initially? Will he be able to bootstrap a Portal.JS project in ~5 minutes or less?
❓ Questions:
💡 Ask someone who's not familiar with the Portal.JS to bootstrap a project
Plan (in progress)
docs is all one page for now (can split later when needed)
Beta Was this translation helpful? Give feedback.
All reactions