Jump to content

End of sharing html link via dropbox


espace
 Share

Recommended Posts

You can use Google drive.

https://support.google.com/drive/answer/2881970?hl=en

Or you can just rent your own VPS? You can get some for as low as 5£ https://www.bhost.net

 

EDIT:

I personally use netbeans IDE, and USB debuging enabled on my phone to test stuff out. Netbeans has a builtin server and you can view the edits in real time without the need to upload to a sever.

https://netbeans.org/features/index.html

Link to comment
Share on other sites

 

2 hours ago, symof said:

But it not available today:
 

Quote

Note: This feature will not be available after August 31, 2016.
You can host webpages with Google Drive until August 31, 2016. After that, googledrive.com/host/ID will no longer work.

 

Link to comment
Share on other sites

If you need a server side scripts you can use http://heroku.com/ You can create 5 free apps.

For example you can use the server side scripting in JavaScript Node.js: https://devcenter.heroku.com/articles/getting-started-with-nodejs

You need put your client side scripts in "public" folder

./
./server.js

./public/index.html

./public/network.js

server.js:

var express = require("express");
var app = express();
var http = require("http").Server(app);

var port = process.env.PORT || 3000;

http.listen(port, function ()
{
    console.log("Listening on ", port);
});

If you want to use socket.io multiplayer:

var express = require("express");
var app = express();
var http = require("http").Server(app);
var io = require("socket.io")(http);
var shortid = require("shortid");

app.use(express.static(__dirname + "/public"));

var players = [];

io.on("connection", function (socket)
{
    var thisPlayerId = shortid.generate();

    var player =
        {
            id: thisPlayerId,
            x: 0,
            y: 0
        };

    players[thisPlayerId] = player;

    console.log("client connected, broadcasting spawn, id: ", thisPlayerId);

    socket.broadcast.emit("spawn", { id: thisPlayerId });

    // ...

    socket.on("disconnect", function ()
    {
        console.log("client disconnected");
        socket.broadcast.emit("disconnected", { id: thisPlayerId });

        delete players[thisPlayerId];
        //players.splice(players.indexOf(thisPlayerId), 1);
    });

    // ...
});

var port = process.env.PORT || 3000;

http.listen(port, function ()
{
    console.log("Listening on ", port);
});

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...