Migrating a Static HTML/CSS Site to RoR [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an existing website, which is built on top of HTML/CSS/JS.
It has extensive theming, and over 10,000 lines of combined CSS (fancy animations and such).
I would like to move it over into my RoR app, however I cannot just drop it in a view because every import statement will break (that I know).
How can I move a site with many JS and CSS imports over to a RoR application? If I could drop it somewhere and let it just be as a static site that would be best. It just doesn't work because RoR won't accept the paths for my imports.
All help appreciated!
Thanks

Related

How to integrate web components in Vaadin [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 months ago.
Improve this question
I was searching for a ready-to use web component for my Vaadin&Spring Boot application, and faced some questions.
As a person who does not into JS and frontend at all, i'm struggling in integration of those components. Currently I'm interested in this one: https://vaadin.com/directory/component/bluewatertrackspaper-countries/overview. I simply do not know what to do after adding a dependency via Maven. Could someone explain a way how to use those components similarly to default Vaadin components, using java classes?
Unfortunately the webcomponent you linked is built with polymer2. You can't use it in Vaadin 14+, except if you are running it in compatibility mode which I don't recommend.
It's easier to do it in Java with a Combobox.

What do most forum website build on? Dynamic or Static Websites? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm planning to create a forum website from 0 for my portfolio and learning experience. What should I choose between static and dynamic? Since I just thought it might affect my website performance.
I know the basic difference between static and dynamic which is one is pre-built and the other is rendered from the server-side.
I have experience in react, express, axios, mongodb, and MySQL
Any suggestion?
Big Forums are all dynamic websites.
What big sites will do for better performance is caching of dynamically generated > content. But you do not need this unless you have ~10 new visitors EVERY second ;)
Quoted from #phip1611

Can you wrap a javascript app in a java container? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a professor that insists we code our app in Java. No one in my group really knows Java. He said we are free to include JavaScript and HTML and CSS.
We want to know how we can essentially make an HTML, JavaScript, CSS app and just wrap it/ embedded it in a Java app. I'm not sure where to start.
Thanks
You can build Java web application with frontend using HTML, JavaScript and all that stuff and Java on server side.
Check these links:
http://www.springboottutorial.com/spring-boot-with-static-content-css-and-javascript-js and
https://dzone.com/articles/java-8-springboot-angularjs-bootstrap-springdata-j

Default path of database in a bootstrap website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
My Boss just gave me a website of his friend so the developer that build it was fired and i need to access the data base to change things.
The Website is developed using Bootstrap and I never used it Before where do I find the definition of the database connection help please.
Nowhere.
Bootstrap is a collection of CSS and (client-side) JavaScript.
It isn't a traditional, server-side MVC framework (or anything else that would fulfil a similar role) and doesn't do anything that would involve a database.
Bootstrap might be used in the output of a View from such a framework, but that's handled at a different level in the codebase.

How to organise RactiveJS code [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I struggle to find any suggestions how to organize RactiveJs code.
Currently I just put RactiveJs code to the bottom of the page. It was okay till my scripts were small. But the bigger they are the more problem it causes. I'm considering moving the RactiveJs code to separate js files, may be using some pattern (Module?).
Are there any guidelines in this regards?
There is a spec for component-per-file: https://github.com/ractivejs/component-spec/ and there are loaders that allow you to incorporate them into the page.
However, Ractive doesn't force you to use this pattern. You are free to experiment whatever convention works for you.

Categories