Questions tagged [web-development]

Web development is a broad term for the work involved in developing a web site for the World Wide Web or an intranet.

Filter by
Sorted by
Tagged with
-1
votes
1answer
48 views

How do I know if my nodejs application is stateless or not?

According to documentation from PM: https://pm2.io/docs/runtime/guide/load-balancing/ To make use of its load balancing feature which uses node's clustering to spawn multiple node processes, I need a ...
0
votes
1answer
28 views

Sync customers between shop and CRM-system (two-way)

I have a shop system that is based on a MySQL database and over which I have full control. On this system runs my synchronization plugin. And then there is an external CRM system with a fixed API. ...
1
vote
1answer
60 views

when and how to use class responsibility collaboration cards vs sequence diagrams?

I've recently come across CRC cards and sequence diagrams at my university. Martin fowler has said that sequence diagrams are interchangeable with CRC cards when you're in the design phase of your ...
0
votes
2answers
153 views

Solution to notify users Single Page Application (SPA) static resources have updated if users don't refresh their browsers

I need to design a way to notify my user the SPA has updated if they don't refresh their browsers, i.e. if no requests to get index.html is made after the initial load, how do I notify users the ...
0
votes
0answers
23 views

Should server return error page or render form again on 400 Bad Request

I have a basic web app (not api) with pages and forms. If a user sends a for e.g. register form with values that cannot be validated, I render the form page again with status 422 indicating where ...
-1
votes
2answers
126 views

What should be preferrable “architecture” for college website: Responsive vs PWA / Hybrid / Native / Flutter

We have a college management system developed over a decade as and when requirements came along. The project team also comprised of students currently doing graduation in the course. These students ...
-2
votes
1answer
67 views

Modify method behaviour at runtime

I have a scenario where user has multiple filters in a web application and a displayed list of items. In the gui it has multiple FilterGUI that he/she can tune interacting in the browser (these are ...
0
votes
2answers
208 views

Is it fine to Copy a big chunk of code (function of 11 lines) and past it into my own project?

so I am making a website for myself. I need code about how to get distance from top to an element, and I found it from SO. I'm aware that copy pasting big chunks (a function of 11 lines) of code is ...
1
vote
1answer
38 views

POST-ing lists of new resources to add/merge/remove

I am working on the backend of a web application that exposes a REST-like API to the frontend of the application. Currently, I am exposing a "Users" resource, where each user can be ...
0
votes
0answers
61 views

Is it possible to run an Excel macro-powered file on a server?

I've an Excel file (offline, on my computer) that elaborates medium-large amount of data using VBA Macros. Basically, this Excel macro-powered file works with a person that adds the data to an Excel ...
0
votes
1answer
48 views

How would one go about connecting API routes from one GitHub repository to another?

This may be a basic question, but I'm having some difficulty finding an answer online. My project is a MERN application that draws from an existing open-source API. This API utilizes a database that I'...
0
votes
1answer
49 views

Communicating state from the backend to the frontend while the user is logged in

Please note: although this question mentions Angular and Spring Boot (Java), and it would be great to get an answer from someone with experience in that stack, I think this is more of an architectural ...
29
votes
10answers
7k views

What is a good approach to handling exceptions?

I have trouble reconciling "best practices" and real-world approaches to handling exceptions. In my day to day routine, I find myself running into the following examples: try: ...
0
votes
0answers
12 views

How to split/filter external data stream and send to different clients?

I am working on a web application that involves displaying real-time stock information. I am hoping to use IEX firehose, which means I would have 1 WebSocket open with IEX through which all their ...
0
votes
1answer
127 views

Is there a name for this common web application architecture?

It's an architecture where the client-side consumes data from, and sends data to, a back-end REST API. I would like to learn more about it, but I don't know the name of it.
2
votes
2answers
108 views

Authenticate users (REST-API)

What I'm trying to build REST-API using Express and SQLite 5 to 10 authors should be able to post articles to /articles except them, no one is allowed to post anything My approach to build it ...
4
votes
1answer
152 views

Accessing Animal not belonging to User: 400, 401, 403, 404, other?

Consider animals being some REST resources. User has animals assigned to him. The endpoint /api/animals/{animalId}/feed is used to feed a given animal by the authenticated user. User should not be ...
-4
votes
1answer
85 views

What is the best way to organize the folders and files in my web project? [closed]

I've been doing technical studies in web design for a while. I have developed several web pages, however, I have not published any. This year I plan to publish my first website. I would like to know ...
7
votes
2answers
346 views

How does user authorization work in a Microservice architecture

I'm learning how to design a Microservice architecture. For example, here is a simple Microservice architecture: I'm kind of confused by the Account Service. As we know, for a web service, normally ...
1
vote
0answers
35 views

How to implement timing-mechanism for fantasy draft process utilizing ASP.NET Core 3.1 SignalR

I have developed a Fantasy Draft system utilizing ASP.NET Core SignalR, along with Azure's SignalR service (for backplane/scaling stuff). Last year I utilized a poor-mans' javascript version that just ...
0
votes
4answers
183 views

What problems could be caused by inserting into a database on an HTTP GET?

I have code that checks if the scanned qr code exist in the database and if it exist it will insert data into another table but I did it in the HTTP GET request, is this alright to do it this way or ...
0
votes
0answers
32 views

MVC pitfalls for POSTs when rev proxy down, caching failed POSTs, none user Auth

Intro My question is I personally spent last 2 years working on a Django project for a factory, it uses the standard MVC pattern. The app uses the factory IP for authentication for terminals in the ...
1
vote
2answers
144 views

Patterns for keeping two states in sync?

A problem been thinking on... I'm on an application that involves two web maps, both showing the same data but in slightly different situations basically (say a different basemap or projection, etc)......
2
votes
0answers
375 views

Setting width/height of unknown images for lazy loading

I have a site where users upload images & can all be viewed on a single page by other users. I want to lazy load images as the user scrolls instead of loading all initially. This is easy enough, ...
1
vote
2answers
125 views

Understanding the importance of Gunicorn and Nginx for Django web development

I'm entirely uninitiated to the world of web development, and only have a tentative grasp on Django and web development through the test server it works through. From the guide I'm reading, the author ...
4
votes
2answers
504 views

Does OOP overemphasize the importance of noun and thus put action/verb in the less importance position ? [closed]

Steve yegge wrote an article called "Execution in the Kingdom of Nouns" back in 2006, 14 years later I still find the points he made valid. For example, "Action is what gives life its ...
-1
votes
1answer
67 views

Best practices for data manipulation to use in admin dashboard application?

I am trying to create admin dashboard to track sales and inventory. Using React front end and Django rest backend API. Right now I am pulling sales and would like to make some charts. What's the ...
0
votes
0answers
49 views

Handle big data sets in a web application in combination with real-time communication between web-clients

We have the following use case to be developing: A web application that shows a data table / data grid with up to 100000 rows and 30-50 columns. Each column is filterable and sortable. The web ...
1
vote
0answers
62 views

Best practices for embedding an application in a website

I've written an embedded app in Javascript/HTML/CSS that allows people to schedule services. Here is an example installation in production right now: https://azureautodetailing.com/schedule-online.php ...
0
votes
1answer
36 views

When dealing with session level data in a web app, is it better to maintain a static store of that data, or pass it around as needed?

I have a web app that is capable of connecting to multiple databases that are identical in structure but contain different data; each of our clients who uses the app gets their own copy of the ...
1
vote
2answers
77 views

Automate clearing everything (database tables, log files, etc.) and starting from a fresh state during development?

The Issue When I'm fixing a bug during web development projects, I often find myself cleaning out the existing (tainted) database records, clearing out log files, etc. I do this so that I can start ...
-3
votes
1answer
51 views

How can I display user's documents (pdf) to them on a website?

As the title suggests, I need to create a document viewer such that a user can log into our website and view the files tied to their account. The reason I'm struggling with this is that the files are ...
1
vote
0answers
56 views

Golang / React Webapp Architecture

A project is structured as so: A build server listens to changes in two repositories: a frontend and backend repo. When it picks up a change it builds, tests, and deploys the updates to a production ...
-2
votes
1answer
66 views

How good of an idea is extending HTMLElement

In the new era of web components MDN (and probably the standard) suggests extending the HTMLElement class. For a long time we've strayed away from doing that, what has changed now for this to become ...
-4
votes
1answer
76 views

Create an e-commerce that integrates other store

I would like to create an e-commerce website that integrate other e-commerce. I can retrieve their products using APIs or feeds. The problem is that all these information are different from shop to ...
5
votes
2answers
296 views

Can the Liskov substitution principle be encountered when building real-world frontend applications?

I know about the LSP, which requires that objects of a superclass shall be replaceable with objects of its subclasses without breaking the application. However I've been building frontend applications ...
1
vote
1answer
76 views

How can I share authentication information between all the server?

I'm developing a web service that have following structure: Web Server: this is implemented with NextJS which do Server-Side Rendering and serve server-side rendered webpage data to Client. API ...
0
votes
1answer
164 views

Modular code how do they really fit together?

Let's say I am developing an ecommerce application. And I have modules organized in certain way. Products Coupon Tag (can be used as brands and linked data) Offer Now what I want to achieve is user ...
1
vote
2answers
242 views

Is it hard to “add” semantic web to your website?

I am learning about the semantic web. So far what I know is that the whole idea of the semantic web is to add metadata to the data in your website in order to make the data in your website easier to ...
1
vote
0answers
57 views

Issues Regarding Data Model Abstraction in Golang

I am currently writing a quiz web-app with a React front-end and a Golang backend, with a PostgreSQL database to keep track of the quizzes, the questions on the quizzes, and the choices in the ...
-2
votes
1answer
133 views

Techniques for *large* CRUD apps?

Question, what is a good way to handle large CRUD web pages? My current process is this: I make/edit the SQL table with IDs I get another set of IDs in the HTML form, which is sent to a PHP page In ...
46
votes
6answers
8k views

Why is 2FA usually done after the correct password has been provided?

If all accounts have 2FA for a given product, is there any reason why the 2FA box couldn't be on the primary login screen? Is it bad practice to request 2FA code along with username and password on ...
2
votes
3answers
388 views

Back-end solution for pulling from CSV files

I'm building a data visualization that displays COVID information for the United States, at the city, state, and county level. The ultimate source of truth are three CSVs published by the New York ...
3
votes
3answers
361 views

Why not use SQL to query an API instead of GraphQL?

nalzok posted an interesting question over a year ago: "Why not use SQL instead of GraphQL?". Respondents seem to suggest three main problems: One should not directly expose one's database ...
0
votes
0answers
64 views

Architecture pattern for website service that automatically generates Bootstrap templates

I am working on a web app that will automatically generate Bootstrap sites given a bounded set of parameters. I need help with regards to architectural decisions, as over time, I have made very naive ...
-1
votes
1answer
84 views

Where to store unregistered user data?

Where should I store data of user that is not yet registered? Data that I want to store: Search history (to show appropriate products on a store page) Theme preference (dark / light theme) Cookies? ...
1
vote
1answer
119 views

Writing a SQL recordset as a HTML Table - a bad practice?

I'm maintaining an intranet using ASP Classic. Some of pages looks like one or more HTML tables used for administration tasks. Those tables are obtained by SQL requests. Server side, they are kind of &...
-2
votes
3answers
139 views

Vector graphics are smaller in file size and more scalable than raster, why vector graphics are not used more often in web and mobile app development?

As in the topic. If yes - why, if no - why? I never seen it recommended in any android/web development tutorials to use vector graphics instead of your usual PNGs and JPGs and I find it odd. I checked ...
0
votes
0answers
55 views

Best way to implement Shopify-like cache for products?

I'm currently building a shopping cart from scratch and am thinking of how I can cache the individual products as well as the product lists (e.g. Show All products page, Show 'Cakes' only page, Show '...
0
votes
1answer
62 views

Question about the best way to architect a small webapp

So I'm trying to create a simple website where I run a computationally intensive task on the backend based on input submitted by a form. For reference: my goal is not too dissimilar from something ...

1
2 3 4 5
31