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.
1,572 questions
3
votes
1
answer
246
views
Where should I store the access token in React?
I'm building a web app using Spring Boot (backend) and React (frontend).
My authentication is based on JWT, with both access token and refresh token.
The refresh token is stored in an HTTP-only ...
1
vote
1
answer
158
views
How Should Services and Presentation Layers Share Data in Web Applications?
Lately, I’ve been studying the fundamentals of Software Architecture for web applications, and I’m a bit unsure about how the data and presentation layers should interact.
From what I understand, the ...
0
votes
1
answer
132
views
Best Practice for Managing Payment Subscription Tier Status
I'm trying to understand the best way to approach how to manage and update a user’s payment subscription status in a web application. Let’s say you have a subscriptions table in a database that is ...
2
votes
3
answers
170
views
Should a web framework / template like Admin-LTE be put in source control alongside our own code?
My team does predominantly back-end work in C#, with a smattering of front-end web development using Angular. We're starting a new website project, based on the Admin LTE framework / template. This is ...
1
vote
1
answer
152
views
Best practice for integrating UI and dynamic user-specific content using a Flask app
I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the ...
-1
votes
1
answer
174
views
Designing a third-party web solution [closed]
I'm building a third-party solution for web applications, which consists of:
A client-side library
A web server library
A third-party service
I'm getting blocked on some architecture decisions, ...
-1
votes
2
answers
148
views
Is there a model or some implementation logic for web layouts?
I am making an application in which the user types BDD scenarios of using a webpage. From this retrieve the widgets and their functionalities and make a "webpage prototype" in Figma. I am ...
-3
votes
1
answer
175
views
How are 413 requests handled by servers [closed]
I sent a search string to google that responded back with a 413 error stating that the request content is too large.
Also, I got back:
400. That’s an error.
Your client has issued a malformed or ...
2
votes
3
answers
2k
views
How to Handle Concurrent Refresh Token Requests
I'm developing a web application that uses tokens for authentication. Users often open multiple browser tabs, and each tab has a client-side timer to refresh the authentication tokens before they ...
0
votes
3
answers
650
views
Is it wise for a Production Browser App to Access Localhost Server
I'm looking at doing something like this:
Browser <-> Desktop App <-> SQLite DB
My first thought was, this opens potential access to that SQLite db to every web app that the user interacts ...
0
votes
2
answers
205
views
Are using website builder's, like Squarespace, OK to use when building a web-app that needs unique external components?
I'm a non-technical person starting a web-based project and would like some feedback as to whether or not building a website using a web-builder service like Squarespace will result in re-work once I ...
22
votes
11
answers
9k
views
How is Agile model more flexible than the Waterfall model?
I know one of the differences between Agile and Waterfall is to do with more customer and user feedback, but I'm trying to wrap my head around what makes the Agile/XP model more adaptable to change.
...
0
votes
1
answer
113
views
Resource protection for static webpages
I'm new to web developement so I'm sorry in advance because I assume this is a pretty simple question.
I'm currently hosting a website on hostinger - deployed straight from my github repo.
Currently, ...
0
votes
0
answers
102
views
How to store OAuth2.0 tokens without any authentication logic on the backend
I was looking for some advice as I am tipping my toes into the world of web development, the question might be broader than the title suggests, so any tip that may be in a different direction is also ...
0
votes
1
answer
212
views
Serving part of a web application as a python package for people to install, ok to do?
Background
To preface, I am building a database for the construction of a timing detector. However, I am very new to software engineering and database development. I have been building a website using ...
2
votes
1
answer
310
views
What is an optimal system design for tracking product views per user that is scalable?
I have a web application that contains products and users. There are 10,000+ products and 100,000+ users to give a sense of the scale that's required.
For some application specific reasons, I need to ...
2
votes
1
answer
465
views
How do I properly organize JavaScript files for web development?
I am fairly new to web development and have been trying to figure out the best way to organize my JavaScript files for the front-end.
The first approach I started with was "one JavaScript file ...
0
votes
2
answers
177
views
Allow-Rendering-Prevent-Download Architecture
I am trying to devise a simple system that, with the use of tokens, allows a specific file to be rendered in the client's browser, yet prevents the user agent from being able to download the file. ...
0
votes
1
answer
465
views
Is it a good idea to serve a Single Page Application as a static site?
I've built a small single-page web application in React and seen that it's possible to serve the app as a static site on something like S3.
Previously, I considered using Nginx, but as this is lower ...
1
vote
1
answer
243
views
Best Approach for Implementing User Watch Time Tracking
I am currently developing a feature for my web application that tracks the amount of time a user spends on a specific page. Our backend is built with Django, and the frontend is using React and ...
5
votes
4
answers
5k
views
Password reset email that is not considered spam
When my website sends emails to set or reset the password, they sometimes don't arrive at the recipient.
This problem does not arise for email addresses at large providers (as Google or Microsoft), ...
-2
votes
2
answers
271
views
Designing a database schema for a website related to my town's history
I am working on digitizing old photographs, articles, ephemera, etc. related to my town's history, and I've been tasked to put these scans I've made onto a website for the public to see. There are ...
0
votes
0
answers
54
views
How to Web Distribution like Firebase App Distribution?
I am looking for a way to let Web QA tester to test website with specific version. So, Web QA tester can say things like "this X is broken since version A.B.C".
The current test/release ...
1
vote
4
answers
752
views
How exactly is the cancellation token mechanism implemented over HTTP?
In a web application with a frontend and a backend part, how exactly is the cancellation token mechanism implemented over HTTP? HTTP is a stateless protocol and it does not allow "sharing" ...
1
vote
1
answer
930
views
Is 10 KB a large amount of data to pass around each time a user makes an API call?
Each time a user of my APP / website interacts with the APP such that it makes an API call to the backend, the backend will make an API call to the mongoDB database to retrieve the document that holds ...
1
vote
0
answers
108
views
Architecture Design using Queue and JWT Token for session management
I am planning to design a microservice system architecture for a ticketing platform. It will be similar to "TicketMaster". Here is the flow of my architecture:
client web browser
API ...
1
vote
3
answers
524
views
frontend server obtain data from backend server, or frontend server return page with javascript that obtain data from backend server?
I'm currently learning how to separate frontend server and backend server. However, i'm not sure which approach should i take between the two
Frontend server obtain data from backend server and ...
1
vote
3
answers
225
views
Handling a Refactoring Project with Limited Access to Source Code
I recently finished an interview with a company as a web developer. I'm the first and only developer that is about to be hired in this company.
They have a web application that was created by a ...
3
votes
1
answer
295
views
Is it good practice to always use "use strict" in modern web apps? [closed]
I'm learning JavaScript and just came across "use strict". It sounds like to me it should always be in play but me being a beginner I was wondering if there are scenarios/environments when ...
2
votes
2
answers
182
views
When writing automated tests for a website relying heavily on a template language, how do I gain confidence while maintaining fast feedback?
I'm working on a website that, for all intents and purposes, functions as a Choose Your Own Adventure book rendered as a single page app (SPA). Starting at the left, this is the user experience:
Each ...
2
votes
0
answers
231
views
What is the proper pattern for a singleton SETTINGS class load using composer?
I have a class file Settings.php that loads an ini file and assigns the content to a constant for global access and reducing clutter. The class file contains the logic for loading the settings and ...
1
vote
2
answers
327
views
Best way to protect action links from CSRF
An application has a multifactor login.
The user logs in with its e-mail and password, and then the following screen asks for a one time password received via e-mail or generated by a mobile app.
In ...
0
votes
2
answers
139
views
Resolvers and Adapters
In the web development application context, when someone says resolver, they talk about getting the data and modify it and then return it?
What about adapters? are adapters essentially resolver ...
0
votes
1
answer
985
views
How should the structure of external API calls in an electron application be designed?
In this scenario, my renderer process' goal would be to make an HTTP request to an external web server and receive responses.
My question is: which options below would be more secure, give a future ...
0
votes
0
answers
57
views
GRPC request from web client to backend
Suppose there is a third-party application which offers GRPC services with authentication. You want to use these services in your web application. So you will basically use that service behind the ...
0
votes
1
answer
187
views
How can a web application distinguish between sessions from trusted and non-trusted devices?
For compliance reasons, we want admins of a web app to work on it from devices (phones or computers) approved by IT. Or rather, they can work from other devices, but should get logged out quickly, so ...
1
vote
1
answer
117
views
How should I approach the development of an app with an parallel independent library?
I'm currently working on an ERP Blazor WebAssembly app that works alongside its base Razor Class libraries. The app could have some custom pages that aren't the same for all the customers and are ...
-1
votes
1
answer
63
views
What is the convention for deciding which resource to place an endpoint under? [closed]
I have an endpoint that teachers can use to invite students to a virtual classroom by providing their emails in a list format. Let's call it POST invite-students. I have these four resources:
api/v1/...
-1
votes
1
answer
138
views
Options for sharing frontend workflows across disparate applications
I am working on a form building feature that will be used across different applications within our organization. Since each app has a slightly different stack we are planning to implement this feature ...
0
votes
2
answers
220
views
How to develop data bound html with strong typing and intellisense?
I'm a huge believer in the value of Intellisense for showing you what syntax is expected and allowed (and also saving typing, though this is a secondary consideration).
When you build a web component (...
-2
votes
2
answers
768
views
What should my next SemVer version number be?
For a frontend web app version 3.9, we have a visual change that I would constitute as a backwards compatible (as far as the API) new feature. Therefor, my SemVer instinct is to bump the minor version ...
-1
votes
1
answer
199
views
Is the BEM methodology in the large project used correctly
I am creating SCSS for the large project, I decided to use BEM methodology. I will have a lot of containers. I have question about BEM and about best practices.
My current code:
.footer {
&...
0
votes
1
answer
166
views
How to estimate scaling up costs/resources-needed of a project? [closed]
Let's consider an entrepreneur decides to create a new company like Airbnb, Netflix, etc. The problem is about the software part. He doesn't know how long it takes to create the mobile/web app? How ...
3
votes
4
answers
1k
views
Avoiding Synchronous Communication Between Microservices
Something that annoys me when reading about decoupling microservices is that the problem is often stated, with either poorly explained, bad, or no solutions provided, which seems to especially be the ...
0
votes
0
answers
61
views
In (Django) web application should if-else logic be at a high level (view) or a low level (template)?
Given a (Django) web application following the model-template-view model, when returning a template based on an object should if-else logic be in the view or the template?
The API endpoint (view) gets ...
1
vote
0
answers
48
views
Storing SQL for table creation
I am currently working on a small web-app stored in a monorepo and using PSQL as database (hosted on GCP). It's my first time working for a web app and I have to create a lot of tables manually such ...
0
votes
2
answers
2k
views
Store static data in public folder as json file or directly in .js file?
I'm busy working on a website – somewhat new to this – and I don't quite know where I should store static data: in the public folder as a separate json file, or within the .js file as an object.
In ...
1
vote
0
answers
228
views
How do I make Design Templates like Canva Templates that are unique but can be modified & exported as an image? Should I use Canvas or WebGL?
Canva has Templates that are unique & can be easily modified by anyone & replaced with their own text, images, etc...
I want to build something like that.
I have multiple options to use but ...
0
votes
1
answer
128
views
How to measure the impact of a website speed optimization
Given:
You have a list of opportunities* that may improve the speed metrics of your website. For example Total Blocking Time (TBT) is one metric that heavily impacts the experience of a visitor.
You'...
2
votes
4
answers
584
views
When Is it worth writing your own CRUD generator for project?
I need to make an app for employees & employers.
When is it worth writing your own CRUD generator for a project with the aim of process automation?
With such a generator I wouldn’t need to create ...