Skip to main content

All Questions

0 votes
2 answers
422 views

Extensive use of global variables in js codebase?

I've been tasked with refactoring/simplifying the architecture of a (relatively) large node.js codebase and it makes ample use of global variables. I don't have much experience with javascript so just ...
amy's user avatar
  • 111
2 votes
2 answers
154 views

How should I store time stamps so that it's easily accessible and won't take too much space

tldr at the bottom if you don't want to read all this! :) First of all the db I'm using is MongoDB! So I've been building a fun project and all has been well but I hit a small problem. Effectively, ...
WildWombat's user avatar
0 votes
1 answer
232 views

Performant way for archiving image files in NodeJS on each user requests

Scenario: Images are uploaded to the server once in a while. Users send an API request for downloading all of those images that were uploaded to the server (Images reside in the server itself). ...
Pratish Shrestha's user avatar
0 votes
1 answer
124 views

architecture - relation of scraper and orm classes

Consider the following application structure. The scraper class extracts the necessary information from a page, and I want to save it to the DB. The ORM class is a wrapper around sequelize.js. It ...
user3568719's user avatar
6 votes
1 answer
4k views

Microservices Architecture separating backend and front end

We are trying to move (slowly) into Microservices architecture from our current monolithic based architecture. I've done my research on microservices architecture and would like to get some feedback ...
dimas's user avatar
  • 161
-1 votes
1 answer
334 views

I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?

Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
wing's user avatar
  • 7
5 votes
1 answer
857 views

Different type of MEAN Stack Architectures

I am reading a book (Getting MEAN by Simon Holmes) about MEAN Stack which talks about different architectures that can be used while developing an app in MEAN Stack and I got a little confused with ...
Lorenzo von Matterhorn's user avatar
35 votes
2 answers
32k views

Methods of separating front and back-end with full stack javascript?

Suppose I have a front-end which is mostly a single-page application written using angular, grunt, and bower. And suppose I have a backend, which is mostly just a REST API sitting on top of an ORM, ...
FrobberOfBits's user avatar
-1 votes
1 answer
357 views

Synchronous architecture with asynchronous repository

In order to keep clean architecture of my node.js microservice I have controllers, services and e.g. repositories. I want a synchronous data flow: controller -> service -> repository -> service -> ...
stein's user avatar
  • 7
1 vote
4 answers
2k views

Call the database every time, or create an object in memory, and if so, how and how often to update?

I'm creating an app in javascript/nodejs and using neo4j as database. Let's say I have an entity User in my database. It has a bunch of properties, like boxes_collected and places_visited, which keep ...
laggingreflex's user avatar
6 votes
2 answers
1k views

Please explain object versioning in the nodejs module system

This question is about the persistance of variables across different modules in nodejs when they don't directly "require" each other, but do "require" a common ancestor. It is also the generalised ...
Racheet's user avatar
  • 457
3 votes
1 answer
308 views

Idiomatic Javascript code architecture

I am writing a node.js application which I am breaking down into modules, the issue is I am not sure how to organise my code in an idiomatic Javascript way. Currently each of my modules exposes a set ...
ahjmorton's user avatar
  • 671
1 vote
1 answer
958 views

Writing a game engine using javascript

..by this I mean a logic handler for a chess game. Basically validating a move and checking if somebody has won. Now ignore the complexity of the game(if you can..) I'd like some sort of psuedo code ...
Julio's user avatar
  • 111