Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
64 views

Upon session time out, login to landing page or back to page client was viewing

Trying to figure out what is the best practice when session times out so that i can do it right first time around. Assume user logs into a web app and goes to "/events" page, where they stay till ...
-3
votes
1answer
773 views

Drawing the conceptual architecture of my web application in simple steps

I need to present the conceptual architecture of my site in a couple of days. It is an extremely simple web-site: it is made using HTML, CSS, JavaScript, XML and XAMPP for PHP, MySQL and Apache ...
8
votes
6answers
551 views

Client side web development - dealing with authentication during development

We are beginning development of an Angular 2 application. Our back-end will be using ASP.NET Core WebAPI. Although my subject calls out authentication, this also applies to any API service that is-...
-1
votes
1answer
84 views

How to make sure I have the contract proposal approval in my system?

I am building a website and in it I am trying to follow the rbac (role-based access control) model. Now, the thing is that managers need to send their contract proposals to approvers (people who will ...
0
votes
1answer
440 views

Is it possible to secure a REST API and validate the integrity of each requests?

I am trying to design a public facing website and would like to experiment with a WebAPI backend and one of the popular front end javascript frameworks. Now, this application is not going to require ...
6
votes
1answer
117 views

Should we be putting CSS in the HTML via <style> during the build process to avoid the extra network requests that <link> requires?

Normally we link to CSS via the <link> tag. However, this leads to the browser making a network request for the stylesheet, which is slow. What if, in the build process, we took our CSS file ...
0
votes
2answers
127 views

Deployed Website's Integrity

Yesterday, the deployment of a financial website on a client was replaced with an older version which created unexpected issues and a downtime of almost 12 hours. We came to know that two guys from ...
-1
votes
0answers
38 views

How can user actions be recreated for an error report?

I'm writing a website in PHP and occasionally find weird bugs that can only be created by a specific sequence of events. Is there an established method to implement the trail of a user through a ...
0
votes
3answers
182 views

Same JavaScript on different web pages

I have a web site with several web pages. Each page requires some JavaScript: i.e. different JavaScript for different pages, which some JavaScript that's common to every page. Some of the JavaScript ...
5
votes
1answer
132 views

How to integrate versions with changelog?

Before I start the question I want to tell you guys I'm new to this type of workflow. The previous companies I worked didn't used Version Control and/or changelogs. Also, I've been working as ...
3
votes
6answers
2k views

Splitting up a very large function/program into smaller functions. Effective?

I know function names can be very expressive. And therefore it can be tempting split up a program into particular functions and call them from a large "oversee-able" functions file. However is this ...
2
votes
1answer
88 views

Basic question on how to redirect users to third party payment sites

My sincere apologies, if this question is too vague but I am really curious in understanding how payment redirection works in web development without exposing data in url parameters. In detail with ...
5
votes
1answer
2k views

Is it bad practice to call another API from a Filter?

I am using Java, Spring and Jersey. I have a REST API A which receives a query parameter called q and sends this to another API B to get a response. I need to implement a change where I first need ...
3
votes
1answer
819 views

How should I run multiple instances of my Docker project on one server?

I have built a blogging application, running in several containers that are managed with docker-compose. Now I'm wondering - how does one run multiple instances of such application on one server? I'...
8
votes
1answer
1k views

Is it better practice to bundle scripts into a single bundle per page, or have several bundles?

In a web application I'm working on, there are 3 types of scripts (same applies to stylesheets): Those needed on every single page (e.g. jquery) Those needed on several pages, but not all (e.g. a ...
5
votes
1answer
617 views

How to handle version number in code, across branches?

I'm working on a PHP app, using three main branches: 'master' (current stable release), 'bugfix' (for patches) and 'next' (for next minor version). We store the current version number in the code - ...
4
votes
3answers
784 views

Realtime frontend dashboard, calling api every 3 seconds, reduce cpu loads

I am working on a networking project. Where I am creating a dashboard to view real time status (CPU/memory usage, up/down traffic and few others) of multiple routers by calling API request to server ...
1
vote
0answers
295 views

Make PHP run like NodeJS [closed]

I like how NodeJS works, the program runs once, includes whatever it needs in order to function, defines its routes and then starts serving requests. On the other hand there is PHP - every request ...
4
votes
1answer
93 views

How can customer specific implementation be handled?

How can I handle customer specific implementation. So for example a custom needs a different way to show data, a different model or a different logic. I've read about HMVC but I can't find frameworks ...
4
votes
1answer
213 views

Git structure on production server

So I want to add our git repo to the server so that we can pull in the latest changes from the master branch and easily update the live sites via SSH. I don't want changes tracked by Git on the live ...
0
votes
2answers
69 views

Strategy for loading page-specific static files on a web application

I'm working on a project that has a massive script.js file where all the shared functions, code and more is placed; but it also has code that has some page-specific behavior. Evidently, this causes ...
0
votes
1answer
359 views

Technical Design document and external agency

My company is recruiting an external agency to do a site redesign/development (agency has not been selected yet). Regarding the technical design document, should my company produce that document or ...
4
votes
1answer
1k views

Designing web application using two different frameworks

i'm relatively new to web development and i wanted to understand what does it mean when someone say "they used django for backend and javascript frameworks for front end." please correct me if i'm ...
1
vote
1answer
43 views

Is there a convention for handling tables and modals

I have a table, each row can spawn a model with additional information. Is there a best practice for displaying tons of information like this? I've considered the following options: Save all ...
8
votes
1answer
636 views

Options to handle large (multi-gigabyte) file uploads

How would you implement a very large file upload functionality with a Django application and S3? In my side job as a photographer, I have several clients for which I have a need to share multi-...
3
votes
1answer
890 views

Keeping data between two databases in sync

Let's say I have a forum application running, and I start building a separate web application with a Python web framework. Both applications use their own MySQL databases, which contain their own ...
2
votes
1answer
74 views

Communicating warnings in CI context - Nodejs, Grunt, Slack

We have a fairly complex Gruntfile.js that performs numerous things to process a bunch of EPUBs. It's part of our CI process being run regularly on Jenkins. Sometimes we want to notify the person who ...
7
votes
1answer
377 views

How to efficiently implement data-heavy screen updates in a web application?

Imagine an engineering type web application where there is a screen that displays around 100 of unique data values. The user can "page through" the screen by clicking Right/Left arrows, and the screen ...
-1
votes
1answer
310 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 ...
0
votes
1answer
375 views

Data filtering & requests: fetch all entries or split data?

I am in a situation I cannot decide which approach is the most optimal (performance wise) while being maintainable at the same time (in the sense of having a clear logic). The question is laid in the ...
0
votes
1answer
1k views

How can I safely expose web API endpoints for user-private data?

I'm building a web application wherein users CRUD their own private data. Can I safely expose API endpoints? Despite years in-industry and endless web-research, I'm not clear on the best ...
3
votes
2answers
260 views

What should I think of when making an internal API public? [closed]

An internal API I've built will soon be consumed by a third party. Should I open the current internal API to the public, or should I create a new API endpoints for external access?
1
vote
0answers
44 views

Using fixtures to maintain static database assets

I have a pattern that's something like this: Create a database model UsagePlan which stores how many usage tokens a paid customer receives in exchange for its respective monthly fee. Through my ORM (...
5
votes
1answer
205 views

Is loading the same .jpg in different qualities a waste of data?

I'm building a web site and I want to use a big background image. Because of speed considerations, I thought that it would make sense to send a low-res version of the image the user first (for fast ...
3
votes
3answers
267 views

Options for the RESTFul approach for follow and unfollowing

I'm looking at implementing a new RESTFul call where a User can follow/unfollow a generic 'thing' item, but I need to know the best or common approach below, 1 or 2? 1) A GET or POST on the ...
4
votes
2answers
176 views

Should a web application be aware of its URL, including its sub-directory?

Let's say I have a reverse proxy set up getting traffic at http://gluten-free-snacks.example.com. It serves different URLs by sub-directories, not sub-domains, for a better web UX. Its default ...
0
votes
1answer
126 views

Why use Grunt for JavaScript-related files instead of relying on MSBuild?

In a Microsoft ecosystem (i.e. WebForms/MVC/WebAPI VisualStudio projects) why should I rely on an external task runner for JavaScript files like Grunt if I already have MSBuild at my disposal as the ...
4
votes
1answer
136 views

How are application in separate data centers routed

A bit of down time at work let my mind wonder a bit. I was designing a single location application on Digital Ocean (load balancer to app servers to DB with DNS). All fine. Then I thought what if the ...
2
votes
1answer
242 views

Finding duplicate email addresses. How heavily should I normalize them?

I have a big list of email addresses and I want to find out which of those are duplicates. How to define "duplicate" is exactly what I'm posting about here. I know from experience that with Gmail, ...
5
votes
2answers
167 views

What strategy should I employ using C# to solve this use case?

So this is all hypothetical and theoretical really. This isn't a real system I'd have to architect, but its a good question. A company stores and reproduces contracts. Contracts can have many ...
2
votes
1answer
138 views

dynamic Layout; viewBag vs render actions

I am a intern student working on a project. We have the need to use a dynamic layout. Originally all that we needed was to know whether or not a search input should appear in the navbar and what ...
14
votes
5answers
2k views

What is the benefit of having “no runtime exceptions”, like Elm claims?

Some languages claim to have "no runtime exceptions" as a clear advantage over other languages that has them. I am confused on the matter. Runtime exception is just a tool, as far as I know, and ...
4
votes
2answers
244 views

How do services that rely on client-side access to an API or data consumption endpoint prevent abuse?

For example, web application monitoring services like New Relic RUM or Bucky use JavaScript to collect data on a user's session and eventually send that data back to an endpoint. For New Relic, the ...
3
votes
2answers
729 views

How to structure an App one back-end & Multiples front-end

I have a big challenge to solve where I have some ideas but I don't know what would be the best solution. Basically I have to develop an application where I have to develop a back-end(web service) ...
1
vote
3answers
728 views

Should I avoid using CORS if possible?

I'm writing an API that will interface with an SPA front-end. For simplicity I currently have the API at api.example.com, and the SPA itself is at example.com. I have CORS set up and everything is ...
4
votes
1answer
9k views

Do I store blog posts in a database? And how do I continue to make posts?

I'm trying to make a simple blog from scratch, but it occurs to me that I probably shouldn't have a bunch of static html pages that I link to, especially since I want the home page to be a cascade of ...
3
votes
2answers
124 views

When would I use additional phases in the deployment pipeline of a web project?

All of my projects up to this point have been solo (I develop single page web applications). I've always used an IDE which automatically uploads changes to a test Amazon EC2 server over SFTP and I ...
6
votes
3answers
237 views

How to document URLs and interaction between pages

We're developing a web application that is now growing to quite a few pages, all dealing with complex data and rather complex interactions between pages. For instance, the login flow encompasses the ...
2
votes
1answer
216 views

Is taking a snapshot of UI to compare the data considered a good desicion?

If I have a complex attendance project to track the employees attendance and leaving, and according to that they get overtime money through a workflow. The schedule is something like that : 6 weeks ...
1
vote
0answers
68 views

designing better and crisp server.js (the file which is called to start node application 'e.g. node server.js')

While creating server.js file we need to provide routes information as var Login = require('./routes/login.js'); app.use('/login', Login); Now, suppose the node project is a REST services project. ...