Wpis z mikrobloga

Witam, mam takie pewnie głupie dla was pytanie. Jak odpalić coś takiego przez XAMPPa, a następnie localhosta? Normalnie wrzuciłbym folder html do do xampp\htdocs, ale nie mam tu takiego folderu. Tutorial mówi:

Script is Writen in language JavaScript!

I recommend this for the people who are versed in JS.


If you do not know some basics of these applications,

I do not recommend you proceed as it would help page may not work as you imagine.

--------------------------------------------------------------------------------

You Can try it with this short tutorial,

More I can not help since i JS meaning only in the basics.

You Need an VPS (Virtual Private Server), or Dedicated Server if you have....


VPS Hostings (most cheap):

For USA i Recommend: http://adf.ly/1aHwWc

For Europe i Recommend: http://adf.ly/1aHwkK or http://adf.ly/1aHwoo


HW Requirements

-Operating System - Debian 7 or 8 (It also works with Ubuntu 12 or 14 i think)

-RAM 1GB or more. (Will works with 512 or 768MB)

-1 Core CPU or more

-Apache2, PHP, Node.JS, MongoDB installed on server.


For Apache install follow this steps:

Login to your server via Putty

apt-get update && upgrade

apt-get install apache2

apt-get install php5 libapache2-mod-php5

service apache2 restart

Apache2 and PHP sucessfully installed!


--------------------------------------------------------------------------------

Script needs to run properly on the VPS database MongoDB and installed Node.JS


#programowanie #naukaprogramowania
źródło: comment_GhfppMAiskC0JdMOFlM6fq6SkVs2EqBV.jpg
  • 21
@WhatWasThat: no taa, ale to jest paczka 24 Mb niewiadomego pochodzenia ;P
ciekawość zwyciężyła, w tym 'tutorialu' na końcu masz:

After installing MongoDb and Node.JS

You must edit file db.js with your MongoDB database details.


You can edit other files and customize your page.

I can not help since i JS meaning only in the basics !!!


After you do this type to your putty command:

node app.js


mongo jest?
@WhatWasThat: ja odpalam przez:

/u01/mongodb/bin/mongod

ty pewnie będziesz miał gdzieś tam mongod.exe

wyedytuj db.js to co jest w mongoose.connect - w sumie powinno ci się złapać na localhost na domyślnych ustawieniach ('development') - docelowo w tym drugim wywołaniu zapewne trzeba podać jakiegoś swojego usera, hasło i url do mongo.
@WhatWasThat: już się chyba pogubiłem :)
moim celem jest odpalenie tej strony, której dane są w folderze, na localhoście przez XAMPPa. Normalnie wrzuciłbym folder html do xampp\htdocs, odpalił przez apache i na localhoście ukazałaby się strona, którą później mógłbym zmieniać edytując pliki .php w folderze. W tym przypadku nie mam folderu html. Jeśli masz jeszcze cierpliwość prosiłbym o rozpisanie wszystkiego krok po kroku od początku, jak dla dziecka :D