Hello there! I have tried to create a portfolio we...
# kobweb
v
Hello there! I have tried to create a portfolio website using KMP - Kobweb. Link: https://github.com/Phantom-VK/MyPortfolio I am Using IntelliJ IDEA for development. I want to deploy this website on github pages. To deploy the project: -> I built the project , after successful build I copied content from '*/MyPortfolio/site/build/dist/js/productionExecutable'* to /docs folder in root directory as it is said in github pages to do. ->Website is getting deployed on pages but i'm seeing a blank white page or it is showing the content of README.md file from /docs. Web is working on localhost. Is there any other way to do so? Or am I doing any mistake?
Eventually, I solved it myself😅 Found another way to export and deploy website. So what I did is, first exported the project using this command in terminal: kobweb export --layout static and after that a new directory gets created in For me: /MyPortfolio/site/.kobweb/site Copied all the content of that folder and pasted it to /*MyPortfolio/docs* folder (and pushed to github) /*MyPortfolio/docs* is the directory from which github pages will take out resources and deploy the web u created.
d
Yep, that's the right way!
BTW I've come to recommend using a GitHub workflow instead, so you don't have to manually push your site to github. You can read more about that here: <https://bitspittle.dev/blog/2022/static-deploy#github-pages>
Also if you're using GitHub Pages, don't forget to set the route prefix!
(You can read more about the routePrefix option in the README)
And finally -- congratulations on working on your portfolio site and getting it live! It's a great experience.
v
@David Herman Thank you for your attention and valuable response sir😄. Will surely go throughout all the resources you mentioned! Edit: I noticed importance of workflow: I dont need to export manually in my IDE and then copy paste content to a folder and then push to github. workflow.yml file automates it for us. We just need to do changes and push to github, it'll automatically do export and deploy for us.
I actually hated web development before, that's why I chose android development for projects. Now this new framework changed my interest 180° . It's rlly awesome and easy to create website with Kobweb. I was thinking to write a research paper on KMP and all these stuff. For better resume and to help others.
d
Thank you for the kind words!!
I made this framework for users like you 🙂 I really liked what Compose HTML was doing and wanted to make it easier to use.
When you feel like you're ready to announce your final portfolio, feel free to start a new thread here or link to it on the Discord.
v
Ofcourse I will!! I would like to do any help that I can do! also I had many questions actually 😅. (Sorry if I talk too much😅.)
d
No way, you don't talk too much! And questions are welcome. They help me see where my docs are missing, and they help others too who can search for the answers.
❤️ 1