Skip to main content

All Questions

0 votes
0 answers
50 views

How can I make the webRTC and signaling feature code production ready?

I am learning webRTC and tried to implement signaling service through websockets. I am still a beginner in backend development so not sure how correct my code is. Can you please review it and let me ...
Aamir's user avatar
  • 9
3 votes
0 answers
50 views

Node.js Dumbserver

Dumbserver, or the simplest workable HTTP server. It is supposed to operate in the 'traditional' way, that is, mapping paths in requests to the directory structure. Why did I write it: I needed a ...
gaazkam's user avatar
  • 581
9 votes
1 answer
440 views

Node.js backend login logic

So I wrote a rather primitive login logic in Node.js, which authenticates the user and handles JWT. Is it any good in terms of security, efficiency, building, async/sync, logging. SECURITY is my main ...
Munchkin's user avatar
  • 205
3 votes
2 answers
3k views

Javascript check if server time is greater than or less than 9am EST

I offer same day shipping if the user places an order before 9AM ET. If they place the order after 9AM, same day shipping is unavailable. My server is using UTC time so I need to check if the time is ...
Junky's user avatar
  • 163
8 votes
2 answers
393 views

Serving a webpage that displays the HTTP request information sent by the client

In order to learn web server programming in Node and JavaScript, I decided to implement a simple web server that only does one thing: Display data of the HTTP request as an HTML table. The actual ...
NPN328's user avatar
  • 771
4 votes
2 answers
184 views

Minimal, very simple, implementation of an HTTP server for static content, using only core node.js modules

To practice the very basics of node back-end, I'm implementing the most basic server possible for static content, using only the core node modules: http fs path With the following server ...
NPN328's user avatar
  • 771
3 votes
1 answer
226 views

Login Server with Node.js

I'm currently learning Node.js. To practice, I've decided to create a login server. The program goes as follows: User connects to local website (10.0.0.79, props to this users answer for helping me ...
Ben A's user avatar
  • 10.7k
2 votes
0 answers
229 views

A Node.js server that create a tunnel to the Internet

I'm creating a Node.js app that allows the user to create their own social network. This code doesn't do anything special yet except creating a basic server and making it available on the Internet via ...
continued-'s user avatar
3 votes
1 answer
121 views

API Implementation and Architecture

I recently put together an Express/Node API that consumes and transforms an additional third party API. And while everything is working great, I feel there may be ways to improve the architecture ...
AnchovyLegend's user avatar
3 votes
1 answer
40 views

Initial attempt at node.js automatic redirection

I'm working on a Node.js HTTP server on my iPhone: ...
motoku's user avatar
  • 2,531
4 votes
1 answer
985 views

Node js server that create, read, and update user data using TCP socket and AES encryption

I've written a Node js server that create, read, and update user data from a SQL server hosted in Azure. Clients connect to the server using a standard TCP socket, every message sent or received will ...
B.I.A's user avatar
  • 93
4 votes
1 answer
2k views

Node.js API Server for querying a Neo4j database

I've written a server in Node.js that listens to http requests via Express.js and forwards requests to a Neo4j server. It's my first time working with Neo4j and Express.js. The code runs as intended ...
Paras's user avatar
  • 585
3 votes
1 answer
392 views

NodeJS static file HTTP server

I wrote a NodeJS HTTP server specifically for serving static files. I didn't bother much about security since the server is going to be used locally in my Electron application. ...
bool3max's user avatar
  • 199
6 votes
3 answers
297 views

Concise HTTP server

Here's my code for a consise node.js HTTP server. It does work as intended, but I'd like to ask if there's any glitch or to be improved. ...
smith K's user avatar
  • 181
6 votes
1 answer
3k views

Creating chat commands properly with Socket.IO

I am developing a chat program (mountreus-chat and GitHub) in Node.js using Socket.io and my code looks awful. I'm starting to use commands and now it's even worse. Here's a code snippet (you can ...
Gabriel Tomitsuka's user avatar

15 30 50 per page