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

Generate a bundle of the admin panel at **/src** with webpack and add to the website at **/demo** with <script> #51

Closed
webcrumbs-community opened this issue Oct 8, 2023 · 25 comments
Labels

Comments

@webcrumbs-community
Copy link
Owner

Objective 🎯

  • Create a Webpack configuration to bundle the admin panel code from the /src directory.
  • After bundling, add the generated script to the /demo directory of our website using a <script> tag.

Steps to accomplish this ✅

  1. Navigate to the /src directory where the admin panel code resides.
  2. Create or modify the existing Webpack configuration file to include the admin panel.
  3. Run Webpack to generate the bundled script.
  4. Move the bundled script to the /demo directory.
  5. Integrate this script into the demo site using a <script> tag.

Additional context 📝

Make sure you thoroughly test the bundled admin panel in the demo site to ensure it's working as expected. Feel free to reach out if you encounter any issues or have questions.

@Yogeshp0012
Copy link

Can I work on this?

@webcrumbs-community
Copy link
Owner Author

Sure! Go for it 💪

@Yogeshp0012
Copy link

Yogeshp0012 commented Oct 9, 2023

Hi @webcrumbs-community , I cannot see any /src directory inside the admin folder

@webcrumbs-community
Copy link
Owner Author

Oh, it doesn't exist yet. Please feel free to create it. Cheers!

@webcrumbs-community
Copy link
Owner Author

@Yogeshp0012 I understand this is one of the most difficult tasks we have at the moment. I included a diagram here to explain how the work we've been doing will come together. Let me know if you have any questions. Cheers!

@Yogeshp0012
Copy link

Yogeshp0012 commented Oct 11, 2023

@webcrumbs-community, Sorry I am currently piled up with a lot of work. You can reassign this to someone who wants to work on it.

@Yogeshp0012 Yogeshp0012 removed their assignment Oct 11, 2023
@webcrumbs-community
Copy link
Owner Author

Don't worry, mate! Come back when the time is better for you.

@webcrumbs-community webcrumbs-community self-assigned this Oct 11, 2023
@ayobamiseun
Copy link
Contributor

@webcrumbs-community & @Yogeshp0012 if this issue is still open can i give it a shot ✊

@webcrumbs-community
Copy link
Owner Author

webcrumbs-community commented Oct 13, 2023

This one is our big challenge. 👀 Everyone is welcome to give a shot! 💪 I'll let this one as a first come first served base.

@ayobamiseun
Copy link
Contributor

@webcrumbs-community am i suppose to add an index to the demo directory before i can call the script tag ?

@webcrumbs-community
Copy link
Owner Author

@ayobamiseun I guess it can be at demo/pages/_document.tsx. What do you think?

@ayobamiseun
Copy link
Contributor

@webcrumbs-community sent a PR regarding this.

@webcrumbs-community
Copy link
Owner Author

webcrumbs-community commented Oct 20, 2023

Received, @ayobamiseun! Thanks. 💪 When you tried, did it add the localhost:3000/admin to the /demo or there are more steps needed? Cheers!

@ayobamiseun
Copy link
Contributor

i doubt if i can set that in the, i will appreciate if you can give me more explanation regarding this requirement.

@webcrumbs-community
Copy link
Owner Author

I don't have the answer now, but I'm hoping to find it on my book list. I know there are many ways of doing it (routing in micro frontends), there's probably a way that's better in our case.

image

@ayobamiseun
Copy link
Contributor

I actually saw we can use routing to achieve this, I will probably just do that.
Set the home to localhost:3000/admin.

I will love to check those books out, can you give me the names and author name.

@webcrumbs-community
Copy link
Owner Author

webcrumbs-community commented Oct 22, 2023

Will do! In the meanwhile, I sent you a gift of an Udemy course that may give us some ideas. You should receive it by email.

@ayobamiseun
Copy link
Contributor

Wow i just got it 😄😁 i really really do appreciate it. i will check the course i am so sure it will help me in working on this.

@webcrumbs-community
Copy link
Owner Author

webcrumbs-community commented Oct 22, 2023

Here it is!

  1. The Art of Micro Frontends: Build websites using compositional UIs that grow naturally as your application scales https://a.co/d/8VL2h1b
  2. Micro Frontends in Action https://a.co/d/dFPzm0p
  3. Building Micro-Frontends: Scaling Teams and Projects, Empowering Developers https://a.co/d/302ulFH

@ayobamiseun
Copy link
Contributor

The links aren’t working. I don’t know if I can get them as a mail.

@webcrumbs-community
Copy link
Owner Author

The second book I've mentioned has a code for routing that may give us some ideas. You can find it here

@webcrumbs-community
Copy link
Owner Author

The links aren’t working. I don’t know if I can get them as a mail.

I think I solved the broken links

@ayobamiseun
Copy link
Contributor

I just got it. Appreciate 🫶

@webcrumbs-community
Copy link
Owner Author

@ayobamiseun Passing by to share that we've just opened the Core Discussion. This will be the most important part for our project, for sure. Cheers!

@webcrumbs-community
Copy link
Owner Author

webcrumbs-community commented Oct 31, 2023

Suggestion: we can deal with this challenge as an /core/experiment-x, improving from the previous one. Experiment-1 is half way there, but it still needs to be bundled and added to an another package. I'll close this one and start a new issue.

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

No branches or pull requests

3 participants