Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,855 members, 7,806,416 topics. Date: Tuesday, 23 April 2024 at 04:11 PM

Javascript With NodeJS - Programming (7) - Nairaland

Nairaland Forum / Science/Technology / Programming / Javascript With NodeJS (16765 Views)

Lets Start A Real Web-deveopment Course Here Html+css+javascript+php+mysql / Which is more awesome to use for 'server-side programming', NodeJS or PHP? / Javascript In One PIX: Understand Javascript With Just A LOOK (2) (3) (4)

(1) (2) (3) (4) (5) (6) (7) (Reply) (Go Down)

Re: Javascript With NodeJS by Nobody: 2:42pm On May 03, 2015
.
Re: Javascript With NodeJS by Nobody: 2:46pm On May 03, 2015
GoodBoi1:
Shared hosting

You will need to find a web hosting provider that provides Node.JS hosting.
Re: Javascript With NodeJS by GoodBoi1(m): 2:54pm On May 03, 2015
Febup:


You will need to find a web hosting provider that provides Node.JS hosting.
I know nodejs comes with an http module which can be used to implement an http server. What ready-madehttp server do I use if I don't want to write one from scratch?
Re: Javascript With NodeJS by micodon(m): 6:28pm On May 03, 2015
Chimanet:

@micodon,
Am really impressed we have some advance JavaScript users here. I tot I was the only one doing core js stuffs .I have a MEAN app am building. Will lyk to get suggestions of free or very cheap host that are easy to work with that you have used in your app. Do you use Grunt for build?

Ive never used Grunt, bro.

About the hosting, the apps ive built with node are running on vps servers.

Digital Ocean do ave cheap Vps hosting
Re: Javascript With NodeJS by Nobody: 8:19pm On May 03, 2015
GoodBoi1:
I know nodejs comes with an http module which can be used to implement an http server. What ready-madehttp server do I use if I don't want to write one from scratch?

Sorry bro, I have not tried that before, I hope someone else can help you with this.
Re: Javascript With NodeJS by GoodBoi1(m): 8:25pm On May 03, 2015
Febup:


Sorry bro, I have not tried that before, I hope someone else can help you with this.
Ok, thanks
Re: Javascript With NodeJS by micodon(m): 10:04pm On May 03, 2015
GoodBoi1:
I know nodejs comes with an http module which can be used to implement an http server. What ready-madehttp server do I use if I don't want to write one from scratch?

eŃ…pantiate on what you need. what reasons are there for not using the http module?

You could use apache or nginx as a reverse proxy, but ull still need at least the http server created from the http module
Re: Javascript With NodeJS by GoodBoi1(m): 10:35pm On May 03, 2015
micodon:


eŃ…pantiate on what you need. what reasons are there for not using the http module?

You could use apache or nginx as a reverse proxy, but ull still need at least the http server created from the http module
Thanks. I get it now
Re: Javascript With NodeJS by Olumyco(m): 7:56am On May 04, 2015
@GoodBoi1 if u do not want to write from scratch then you will av to use d already made one on d internet but u will still av to do some changes to it to suit d app u r building.

Besides u can switch to MEAN to develop ur apps.
The E in the MEAN is express.js and this stands for ur server. U can download the express.js module then get d already made script to require the module in ur app development. But will still av to make some changes to d script. In short u cannot avoid coding ur server. Just take the pain to code it urself. That is why u r a programmer.

As for hosting companies, the following companies host nodejs apps:
bejes.us
cloud foundry
cloud node
dot cloud
duo stack
godaddy

1 Like

Re: Javascript With NodeJS by Nobody: 7:18am On May 06, 2015
micodon:


you see? why wouldnt microsoft hype their product?

If C# can do what c++ can do, why is C++ used in writing windows. Hell, the windows kernel is written in C.

If c# can do it, Why didnt they use it to write the entire windows? their own creation.

Dude, dont just believe microsoft. theyre liars

What have you got to say about this code below: "Dynamically Writing and Executing Native Assembly in C#". If someone has already written a code I just use their code to backup my point and reference it instead of wasting time to reinventing the wheel.

Dynamically Writing and Executing Native Assembly in C#:

C compiler:
Instruction Code Bytes Comment
------------------------------------------------------------------------------
mov eax,dword ptr [esp+8] ' 8B 44 24 08 Load the x into eax
mov ecx,dword ptr [esp+4] ' 8B 4C 24 04 Load the y into ecx
add eax,ecx ' 03 C1 Add eax and ecx, result goes into eax
ret 8 ' C2 08 00 Pop x and y off the stack, return eax

// C#
using System;
using System.Runtime.InteropServices;

class Program
{
private delegate Int32 MyAdd(Int32 x, Int32 y);

private static void Main()
{
// A simple Add function
Byte[] myAddNativeCodeBytes = new Byte[]
{
0x8B, 0x44, 0x24, 0x08, // mov eax,dword ptr [esp+8]
0x8B, 0x4C, 0x24, 0x04, // mov ecx,dword ptr [esp+4]
0x03, 0xC1, // add eax,ecx
0xC2, 0x08, 0x00 // ret 8

};

// We need to push the code bytes into a native buffer
IntPtr myAddNativeCodeBytesPtr = IntPtr.Zero;

try
{
// Allocate the native buffer
myAddNativeCodeBytesPtr =
Marshal.AllocCoTaskMem(myAddNativeCodeBytes.Length);

// Push the code bytes over
Marshal.Copy(myAddNativeCodeBytes, 0,
myAddNativeCodeBytesPtr, myAddNativeCodeBytes.Length);

// Get a function pointer for the native code bytes
MyAdd myAdd = (MyAdd)Marshal.GetDelegateForFunctionPointer(
myAddNativeCodeBytesPtr, typeof(MyAdd));

// Call the native code bytes
Int32 result = myAdd(4, 5);

// Did it work?
Console.WriteLine("Result: {0}", result);
}

finally
{
// Free the native buffer
if (myAddNativeCodeBytesPtr != IntPtr.Zero)
{
Marshal.FreeCoTaskMem(myAddNativeCodeBytesPtr);
myAddNativeCodeBytesPtr = IntPtr.Zero;
}
}
}
}

Source: http://blogs.msdn.com/b/devinj/archive/2005/07/12/438323.aspx
Re: Javascript With NodeJS by Nobody: 4:09pm On Aug 30, 2015
Mr A: i learnt C was written with PHP
Mr B: sorry, C was developed with java
Mr C: lol
Mr A: whats funny.
Mr C: It is funny where you guys got your facts from, C was actually written with Apache
Mr A: I actually meant Apache not PHP

this is how your rants sound, atleast from page 2
can seun please help delete this embarrassing thread off the face of the earth?
Re: Javascript With NodeJS by icemancoder: 3:49pm On Nov 30, 2015
Hey guys,

I'm looking for a couple of good nodejs and/or angualrjs coders to join our team. If you or anyone you know is looking at new opportunities please ask them to contact me.

I'll arrive in Naija tomorrow night and will be on-ground for a week.....contact me on my Naija whatsapp at 08130617067 if your interested. I'll be staying in Ikeja.

Jeremy
Re: Javascript With NodeJS by JonyGreen: 10:42am On Dec 08, 2015
pcguru1:


Nope not that i know of (though never used Closure Compiler before directly) Typescript only gives you what you put in, however you can use "Gulp" to watch your file and minify js. Sadly i haven't been opportuned to work with TS, as Angular is what i use at work and it's only Angular 2.0 using TS. But TS is actually good and gives you Static Typing which is why am gunning for it, am tired of JavaScript's loose typing and unforeseeable errors.

I use the node js for a long time, i like it.
Re: Javascript With NodeJS by 1xgg: 2:43pm On Aug 19, 2019
Oh 2015

(1) (2) (3) (4) (5) (6) (7) (Reply)

Front-End Developer Or Back-End Developer: Which Job Title Has A Higher Salary? / Read And Generate Barcode In C# / Which Is The Best Place To Learn Programming In Nigeria?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 27
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.