Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey guys and girls, i am creating some kind of web-application with basic javascript/jquery and html + css . I did some researche online and really couldnt find anything to my specific needs.

Is this even possible in wordpress? Or do i need to create my own sql database and program a user login etc etc.

What I have tried:

i have created the application in a .html page without external stylesheets.
Posted
Updated 8-Nov-17 2:49am

1 solution

Yes, HTML files do not require PHP processor to execute the code, you can have static files in HTML.

You can also stylize those documents with the same CSS files that your WordPress website has, and you can add the same JavaScript library (or more) if needed. Linking them is as easy as,

HTML
<link rel="stylesheet" href="/stylesheet.css" />
<script src="/scripts.js"></script>

This will merge everything, just the file will not longer need to be processed. However, there are a few other problems:

* No templating with PHP (include etc.)
* Writing the code again, for the templates.
* More JavaScript to do the job of PHP (user management, sessions, etc.)

Lastly, why do you need database? Since this is all static website, there is no need to add any database anywhere. You can create HTML documents, stylize them with CSS and manage them with JavaScript — but that depends on where you are hosting the website as well. However, if you just want a single page of HTML and rest with PHP, then just add an HTML page. :laugh:

However, if you do want to use databases and other dynamic resources, then consider using Node.js. It is a JavaScript-for-server-side framework that you can use. It can integrate with the platform and provide you with the best options of web development if you only know HTML, CSS and JavaScript. You can use SQLite databases, that do not require complex database setup at all.

Node.js[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900