2020-02-02 21:06:11 +00:00
// Load the http module to create an http server.
var http = require ( 'http' ) ;
// Configure our HTTP server to respond with Hello World to all requests.
var server = http . createServer ( function ( request , response ) {
response . writeHead ( 200 , { "Content-Type" : "text/html" } ) ;
response . end ( ` <!DOCTYPE html>
< html >
< head lang = \ "cs\" >
< meta charset = \ "UTF-8\" >
< meta http - equiv = \ "X-UA-Compatible\" content=\"IE=edge\" >
< meta name = \ "viewport\" content=\"width=device-width, initial-scale=1\" >
< title > Roští . cz < / t i t l e >
< style >
body {
font - family : 'Helvetica Neue' , Helvetica , Arial , sans - serif ;
color : # 2 a303c ;
background : # 54 af46 ;
}
. header {
text - align : center ;
}
pre , . row p {
text - align : left ;
}
. container {
width : 800 px ;
margin : 50 px auto ;
background : # fff ;
padding : 20 px ;
- webkit - border - radius : 5 px ;
- moz - border - radius : 5 px ;
border - radius : 5 px ;
text - align : center ;
}
a {
color : # 54 af46 ;
}
. project - domain {
color : # 54 af46 ;
}
< / s t y l e >
< / h e a d >
< body >
< div class = \ "container\" >
< div class = \ "header\" role=\"banner\" >
< a href = \ "https://rosti.cz\"><img src=\" data : image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAAKkAAABGCAYAAAC3x7R4AAAABmJLR0QA / wD / AP + gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gsaEh06ilaTpQAAGElJREFUeNrtnXm0HEW9xz / 3 kgVCEgkhrLJDEpqlOwjIC52QKIwKHuLI + NgUaUBWFXnogI8HARTBkQCCC6sDAhFhdECQwLAF0oQdeljaoLKFCCQBQvbtcu / 7 o37NrTS9zdybQGB + 5 + Rkbnd1VVfVt357VUOLWtSi5qhQza3yf4ta9EkFanuhmmtrjcRnm9o / yVwUaAP + uzVNn236xHKpQjU3FugCzgMOAJZW8rXWjLU46SeHk1bytYeBzwFbAIcDexSqObtQzW1TqOb6xXDeFrU46RoHKoVqbmPgdmA3oC8wD5gPvAQ8ANxYydfm6s + 0 qAXSNQ3WocB0YHhCsanA9yv52ostoLbE / cdBC4VzJtE44MlCNXegcN / WzLZAuuaokq + tAP6Yoeh6wJ2Fas5qAbUF0o + DrmsE14VqblBralsgXdPcdBFwR8bi2wM / anHTFkg / DjoZWJKx7HmFau6QwIBqgbUF0jVh4VPJ194A9gNWZHxscqGa + 3 uhmtuhN6x9w7Iz30sqm + V + b1CWNtbEe / QGrTVxcc1v2h94ENi7gfe / AjgXmF3J17qadVMZlr09KrCwUlvkU33PnW5YNr7n6mWHAwejomY6Xep77rI1MWaGZR8AHAl8ELrVH / i977n3f2pBalj2KcB2EROQpb2VwBxgBvCQ77nzg1WtT3IKUNdBxfT / B9gjY9sLgJuBcyr52ltN9nsn4IWQBFoMmMDLAL7nYlj2IeKR6Beq4gLfc / 93 DQF0LPBQzO2XgHG + 5779 qQSpYdlDgaeAbXrpHe4ETvI9941GwSq / twdOAr4DbJSxT2cBv6jka53h + jKIx6uA74Vueb7njpIyhwM3RTx + iSyqyP6l9TvLuARlDMvuB9SBkRHFlgAjfM + dtbZI0WZAOhJ4BNiwl9 / lPN9zJ2aZkDhQFaq5ESKODwFGpLT3PPCTSr52T4P9HwbMBNYN3bpKuOkvIx67GTjC99zOFHD1BfpEzNGSNICG6psMHBZxay4wxvfcl7KAfq0EqXASGxWGXGc1vM9dvuce2ICeeqZwtTbgfuCaSr42XRJQjgF + l1LFCmBiJV + 7 MAs31cB0GDA5dLsL6IwYl8nAt33P7UoChmHZewLTgEURxu3rAafOMEc / AUoRt5YB433PfWxtAmiznPTbwA2r8Z1OFENnlYEMifgDgBuBIRHPzwMukPubA38Btk5p87uVfO2PDQL1EWB0Sr3TgK8ASzOI6p8DZ8bcvsP33IMyvNMI4DFgg1CRD4BDfc + tfFZcUHus5nc6K2pCNYBejXLsD4l5fohwkheACcAuop8l0fWFam5cFr1UwAAqz7UjoegTwFd9z12apmsKjUuo68G0dwrAHAHQTuBg33Mra4vLqTc46TQR + VHUQbLDvV + ELhdF + / u e e 5 / O R e V d L w F O a f C V H w Z + C L j A w I R y T w J j g O V Z 3 V O G Z T 8 E j I 3 C D f A F Y F l W s W p Y 9 v I I b 0 B A u / u e + 2 x G P b Q r B N C J v u e e v 7 a J e J 3 6 N K K P S i e T O O l t w K k x 9 b a L + J 0 g V m 4 S F / 8 O c F / I 7 X R k E w B F Q H S q q B F J a s o X g J 0 q + Z r X w F g U g O 9 r O m m b 6 L m T f c 9 d l p V z G Z a 9 Z Y q O 7 6 c 8 3 w + o A l N C D O h d 3 3 P / H u d R + F R y U s O y h w D v J R T 5 g e + 5 v 8 l Q z 7 n A 2 Q l F 6 r 7 n W h o n 3 V I s 6 i z 0 F n C x 6 I M d s j C O E a v 7 Y l Q Q I I 5 + W c n X z m h k 0 U Y B M b j e A B f d H 7 g 7 Z u G + D O w E r G w W a G s z F 2 2 I k 2 b Q m 0 D 5 T 7 P Q r 1 G + y r h F s p E G 0 L Y M V n r g / z u z k q 9 d G r r + N H B H o Z r b C r g s B a T f A M 5 I M q C C C Q 8 m P W 7 y G w T q 8 I S x m A F 0 h K J Z H 9 b b G / 7 V z x p I H 8 9 S i e + 5 7 6 W I w n c 1 X X R b Y N + U K r u A I y v 5 2 l 8 i P A G B 4 T W z U M 0 N B N 6 P M C 4 C G q E b a U l G i o Q c v 4 x y m G 8 u 4 n q + c L 5 H g a r v u X O S g G J Y 9 g D R Q 0 c l g H Q W s I F h 2 V 1 A m + + 5 8 y K 4 + e A Y L r w g z j f 7 a R b 3 z 8 i A R t F s 3 3 M 3 z R g Z a R O 3 S F z 7 f / E 9 t y A g O w n 4 b c q r X V P J 1 7 6 X 5 k K S P N P n S I 6 W b V j J 1 6 K A 0 A 5 Y o k 8 f k X H I / i 1 q x h T f c / 8 T s u a H C 5 d s 1 H i 9 0 P f c n 2 r v d w L w + 7 j 2 f c / d c W 0 H a X s D A G 1 H 5 W r G 0 d Q G F P Q 9 U i Z H T 3 w 4 K a W u d 4 D j s z R a y d c W k p 7 u N z D s H h K O d y v K B 3 l E A + O 7 A 3 A 1 8 K R h 2 R N D 3 H h j m s u d e C I E 9 q 8 m l H 2 A T w E 1 4 i f d P k U 9 e D h N e d c G 9 u i U t v 4 s n G 8 w s H N K 2 U u C G H x G 1 9 E H G V Q H X U T 3 F W B 8 U 3 4 3 Q 5 s B 5 x i W / Y i 2 i H d v s q 7 H Q 8 x g n 4 S y D 3 7 W Q L p t y i Q 9 l K K H B m K z A D g J R R 9 F R Y 0 g O v 6 s 0 3 L g / g a T m t P 6 / K Z m + P S R x b d z L 4 3 3 D O 3 3 f z V T g e + 5 b 4 a 8 L U m + 3 x 5 Z T I 3 m y X 4 S Q L p d A i d d L g p + U o f 7 G J Z 9 m Y j N / g l c 7 F q 6 H d K F l H e a A 7 y a t Q O F a q 5 v Q t u B S q A b G k c C X + y l s b 6 S V b O n R j d R x z M h s O x I v H 9 1 I T C v U W D p 5 W W h D j I s e y v D s t f T P Q p r E r x 9 M r 5 4 m w x I W w K 4 f m d Y 9 s q Y h b A F K p q T J i 7 / B d z k e y 6 S J L J L G t e r 5 G t z G u j v B i R H v F 7 T B r 0 d O C q h z 4 + g o j n 3 a + M 0 U i z + C a h d B G 2 a + n K i 7 7 l 6 N C g n 9 6 9 J E N k 3 A B f K O 7 f L + O i i P g m k L 4 d d V 2 n g l L L D D M s + G J V N N i Z U Z j 4 q o + s 3 w A u 6 O 8 6 w 7 A m y q B v N M Z 4 D n O 5 7 7 s K e u q D a S U 5 9 W 1 c 6 1 V P a T 4 v U b I f a p k w v 6 l w b A g O S p G l I 1 I + J K T c f l V G 0 M i S K Z w A z D M u + U t 7 / r 2 J s H a d n Q c n / L 8 n E 7 5 T w P j f 6 n u v H g C k w z N q T Q N o I Q A 3 L H g / c g u a n D t H n x E g 9 z L D s g 3 z P f S g U f f t m E 3 P + f J o B 2 S d L B 6 S S E a w + W g 4 c 5 H v u G 4 Z l Y 0 w c A C p z a U D K c / c 2 I O o B h g L r J x T T E 1 G S u P j 9 v u e u T H C 3 d f i e + 8 + g j k A c h g M A 4 j X Y s B E 9 X 3 u 2 X U B K g v v p g w Y A W h B V T K f F q A h j p + i + Q + X 6 Y O A + w 7 K H + p 6 7 Q K 6 N 1 A 3 P B I n b F g L l f 6 S d H u u k b S k D 0 h N a C n z N 9 9 x a M G B i p W + X Q T 2 Y m r U R q X P j F J 3 0 m Z C h G E f j D M v e M i n a l P S 3 R k n 6 7 h z f c 5 c n 6 H t 9 R N x H U W e g G m Q w x I K 9 W 9 e H b l 2 F y n v Y Q z w R o 4 F f a G D r A 1 y u l f + B q D h x / / Z H R f T e D b V z W d p i 6 p O x E z u t B n B 2 i D v l K 7 7 n L o 7 g S m k W 9 V u V f K 0 z F F 1 q k z 6 t j H F H p d U 5 Q 6 t v c Y r a M N O w b E / E + b 9 F v M 4 Q A 7 I D W B 7 S Q R s F 6 R N x A B f g r p P A O D K D V N O Z d a l 1 h O + 5 k 0 N z 8 h 5 w p m H Z W 6 N 8 x d O B Y z W c P J a B a 9 8 b U i U O 9 j 1 3 S l o A K C s n H d / L A J 0 K 5 H 3 P t W M A m g V Q j 4 T E + d b A r 1 B 5 A X G L 7 w s J 9 b 0 L L N T A / W S G f l j A C c B F q C y k f 4 h V / S R w m W H Z u 6 d Y v 0 k Z Z U 8 m M Q 5 R W 4 Y m g P S f G f X R A 0 P j 8 r s I g O p 9 O A q V U b Z P o P K k q R O G Z f c z L P t 2 4 a j B w v 2 h 7 7 l / z R K h 7 C 2 Q P i V c U f / 3 b h K D 9 j 3 3 z g h D Q K e R K W 0 + F o j x Q j W 3 E / A i c B r w a i V f 6 4 j Q R w H 2 S q h v t h h E w Y T M E 2 7 R D O 2 C S u F 7 z L D s 4 6 O y p S S 9 b q u E O p 5 N a S M p U W Z F A z t B T w / p j O f F q S w y V x 2 + 5 1 6 R J Y F G u 3 8 x c J C m O p 7 n e + 7 l K a p Q w y A d m 2 S d + Z 6 7 p + + 5 e + v / h L v E U S 4 J o A K q T V P e 6 W k p O 1 K s 8 v V R 0 a T L o / T R Q j W 3 r r j C 4 u j t A K T i V u k E J p I e o U q i v s A V h m U 7 E U A d A g x L 0 N P f S u F S 4 9 I W c A Y u 9 / m Q y n C 7 7 7 m z 4 5 5 r Q N f W g f 0 z 1 O k z A V 3 s e + 5 E c W t m d i 2 l d W Q Q 8 V s 1 k o y X J K N m B 8 O y N 0 / o 5 P A M 7 z 5 T D o q 4 Q v c r V v K 1 Z T E R q L Q N f v V K v t Y V G u T 7 R E T 1 B K g A k w z L 3 i z k D N 8 g A a T z x
< / d i v >
< div class = \ "row\" >
< div >
< h2 > Kde to jsem ? < / h 2 >
< h3 class = \ "project-domain\" > < / h 3 >
< p > Na < a href = \ "https://rosti.cz\" > Roští . cz < / a > a p r o s t ř e d í p r o v a š i a p l i k a c i j e p ř i p r a v e n o . < / p >
< p > Nyní můžete obsah adresáře < code > / s r v / a p p < / c o d e > v y m a z a t a n a h r a d i t h o s v o j i a p l i k a c í .
< br > Nezapomeňte napsat správně soubor < a href = \ "https://www.npmjs.org/doc/files/package.json.html\" > package . json < / a > a u l o ž i t h o d o < c o d e > / s r v / a p p / p a c k a g e . j s o n < / c o d e > . < b r >
Podle něj se automaticky nakonfiguruje prostředí a nakonec se vaše aplikace spustí automaticky pomocí < code > npm & nbsp ; start < / c o d e > . < b r >
Pokud v < code > package . json < / c o d e > n ě c o z m ě n í t e , n e z a p o m e ň t e c e l o u a p l i k a c i r e s t a r t o v a t z a d m i n i s t r a c e , a b y s e z m ě n y p r o j e v i l y . < / p >
< p > HTTP server vaší aplikace spusťte na portu < code > 8080 < / c o d e > . N a j i n é m n e b u d e f u n g o v a t . P ů v o d n í p o r t 8 0 0 0 n y n í p a t ř í N g i n x u , z a k t e r ý m j e v a š e a p l i k a c e s c h o v a n á . < / p >
< / d i v >
< p > V případě problémů se prosím obraťte na < a href = \ "mailto:podpora@rosti.cz\">technickou podporu</a> nebo na <a href=\"https://docs.rosti.cz/\" target=\"_blank\" > dokumentaci < / a > . < / p >
2024-08-13 17:59:45 +00:00
< p > Tým < a href = \ "https://rosti.cz\">Roští.cz</a> | <a href=\"https://rosti.social/@we\" > @ we @ rosti . social < / a > < / p >
2020-02-02 21:06:11 +00:00
< / d i v >
< / d i v >
< script type = \ "application/javascript\" >
var index , len ;
var places = document . getElementsByClassName ( 'project-domain' ) ;
var domain = document . domain ;
for ( index = 0 , len = places . length ; index < len ; ++ index ) {
places [ index ] . innerHTML = domain ;
}
< / s c r i p t >
< / b o d y >
< / h t m l > ` ) ;
} ) ;
// Listen on port 8080, IP defaults to 127.0.0.1
server . listen ( 8080 ) ;
// Put a friendly message on the terminal
console . log ( "Server running at http://127.0.0.1:8080/" ) ;