All Questions
19 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
...
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 ...
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 ...
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.
...
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.
...
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 ...