How to get a simple Bootstrap Site on cloudControl - html

I'm trying to deploy a simple Website - a couple of html sites based on twitter-Bootstrap templates - on cloudControl.
Unfortunatelly It seems I can only deploy a Java, PHP, Node.js and some more applications but not just some html sites.
Building a Java or any other application just to show some html sides seems to be an overhead to the scope.
Is there any suggestion how I just can deploy html sites to cloudControl ?

I would suggest php, the buildpack automatically provides apache as web server and delivers static html files directly.
In all other cases you have to provide the server by yourself and it seems like you just want some static html pages.

I think NodeJS would be your simplest option. Start with a simple server like this..
https://github.com/spadin/simple-express-static-server
Put your HTML/JS/CSS files in /static, and it's ready to deploy

Related

How to use ASP.NET Core 2.1 as the backend of a normal HTML/JavaScript web page?

I want to use ASP.Net Core as the backend of my website. Do I have to use the razor views that come with it or can I use as the backend of a normal web page made from HTML, JavaScript, and CSS?
If you just want to serve static files, then sure, you can absolutely do that. Just start with a blank ASP.NET Core project and put all your files into the wwwroot folder. Everything that’s in there will be served directly.
For just serving static files, an ASP.NET Core application might already be a bit too much, but of course if you have the application set up once, you can always add actual server logic later. So it may be possible that you end up adding an API or other dynamic things to your application later.
Given you configure CORS correctly (if you use it at all), you can call your APIs from anywhere. The caller doesn't need to be a Razor view, as that's just a way to generate HTML.

Easiest way to deploy an html page on a web server

I have an html file that I use to extract a locally stored sqlite database file's informtaion, using some easy javascript.
Now I want to access this web page through http protocol (not file:/// scheme).
What configuration do you recommend to easily realize this manoeuvre ?
Thank you in advance.
Your question is lacking, but in general you want a webhost or setup your own computer for external connections.
I recommend finding a simple hosting site and learning the procedure from there.
From the command line, navigate into your project folder, and run:
python -m SimpleHTTPServer
You can then open http://localhost:8000 in your browser, to view your page using the http:// protocol.
(I don't think this will work if your HTML file is actually PHP, which given that your description includes databases, it sounds like it might be. In that case, I would download something like MAMP.)
This answer assumes you're just trying to use the http:// protocol to test your page locally - like the other solution says, if you want to deploy your page so other people can see it, you'll need to find web hosting.

Starting up a node.js project

I'm about to start a project that's going to be a web site for storing photos. The method for uploading shall be drag and drop (from the desktop, same as Imgur), and it shall be possible to rate the photos as well commenting them.
For the project I'm going to use Node.js as well as HTML5, CSS3 and jQuery. The thing is that I'm a total newbie on Node.js and really could use some help regarding getting started. For the project I will of course need a database, and I have understood that MongoDB is a good choice. Is there any templates for this combination, so that I don't need to start from scratch?
I have installed Node.js and followed some tutorials but I really feel that I want to a template if there is one.
Thanks in advance!
As you said you are a beginner you can take the best independent modules for your project and start using. Instead of having a pre-defined package of necessary components as a single module. Problem is you may end up not understanding the whole pack and become more biased.
So,
I would suggest to use Expressjs (Best Choice) for url routing as mentioned above.
And,
File upload management:
formidable - a high performance file upload server with file parts reading and progress notifiers etc.
Template Engine (Markup libs for your custom htmls):
Jade
coffeekup
And consider Bootstrap as well for prebuilt templates if in case you need it.
Mongo - Good choice.
Mongo Modules
These libs should help.
Take a look at HTML5 Boilerplate + Express.js
As a basic starting point, this is a popular framework:
http://expressjs.com/
Here you will find some links to example applications:
Node.js Web Application examples/tutorials
https://github.com/heroku/facebook-template-nodejs
Open Source Node.js (and Express) projects
Express JS is good but I would recommend you have a look at Railway JS as well.
It is based on Express with support for numerous template engines and database adapters (including MongoDB). It is a lot more modular so you should not have much trouble working with it (in my opinion).
Check out: Uploading images using Node.js, Express, and Mongoose too.
Here is a list of resources that I have compiled using themeefy to start a node.js project http://www.themeefy.com/AvinashEga2/nodejs
I think Tower.js is something like what you're after.

Spring web development advice

At the moment I'm learning spring and have the basic website running now on tomcat. Can I ask, how do you load images onto the website now and where do you store the images, css, javascript etc in your project folder?
The answer depends a lot on your development/deployment environment. If you are using Maven for example, which has a specific directory layout, you would put the files in src/main/webapp/.
If you are using Eclipse as your IDE and use Ant to build your project, you would normally use WebContent/.
In any case, I would advise to use specific folders for each type of file. You can still use Tomcat Filters, if you want to influence the headers that are sent with the files. (Important for caching, ...)

Add Wordpress to Website

I'm starting to develop a new HTML website for traveling using Dreamweaver. I'm also plans to integrate Wordpress to manage content of the website.
My questions are,
Where can i found tutorials to integrate Wordpress to my HTML website on localhost (for testing purposes)?
Can i add new web pages using wordpress?
If i want to migrate from HTML to ASP.NET etc., will it be possible?
Wordpress uses HTML. All the markup WordPress generates is HTML.
Yes. It is easy as selecting new page.
They are not the same thing. Using .net will mean you will use HTML for the markup. .net is just a framework you use.
If you want to develop websites and have a greater understanding of the markup and code, use the code view of Dreamweaver.
To run WordPress locally, you'll need to install a local server environment (e.g. XAMPP, MAMP, WAMP), and from there you can pretty much install just like you would on a normal server. Here's a good guide to installing WordPress locally.