r/Web_Development • • Jul 25 '20

Newbie question: What are the best languages/frameworks to consider for making a relatively simple web app?

5 Upvotes

I feel like I'm missing something because I haven't been able to find a good answer to this question. I'm sure you guys are the best people to ask so please forgive how basic it is.

I'm looking to develop a relatively simple web-based app, but don't even know where to start. I'm a fairly experienced programmer but haven't spent any time doing web development and very little doing front end stuff. What are the dominant languages/frameworks/packages for creating dynamic web content? Tasks like pulling results from a database, rendering subwindows, plotting graphs on the fly, entering values in forms, etc.

I know Javascript is mentioned a lot but that seems to be a huge topic by itself. Is there something more specific I should be looking for? Maybe there are other languages I should be considering?

Other than the tasks above, I'm not sure what the deciding factors are. As long as the interface is responsive and not overly limiting, I think the simpler the better. I'm just surprised there isn't a dominant answer I've found yet, as there is in the other areas of programming I'm more familiar with. Once I've identified the options, how do I choose one?

Thanks for the advice and again please excuse the basic question.


r/Web_Development • • Jul 24 '20

Installing StackPost on Debian

2 Upvotes

Hello,

"DISCLAIMER: I am not sure if this is the correct sub - I thought it does relate to Web since I want to install it on Debian. "

I want to buy StackPost - https://getstackposts.com/ , but they do not provide any documentation on how to install it via the command line. Perhaps someone here used it and could provide me with the basic instruction, what needs to be done?

They state that you will need these packages: https://stackposts.com/docs/detail/21747459/requirements

And it seems that you will need to install ffmpeg, where they do provide the command line installation guide: https://stackposts.com/docs/detail/21747459/installating-ffmpeg


r/Web_Development • • Jul 23 '20

React - best practice to use Stylesheet or JS variable inside component?

2 Upvotes

Question is in the title, I'm learning React and I'm curious where everyone puts their styling. For instance, a nav bar. Is it better to only use a JS variable for styling that is dynamic, and put everything else in a stylesheet?

Thanks!


r/Web_Development • • Jul 22 '20

coding query How do sites show world cities as you type?

5 Upvotes

I have seen some websites that have registration forms that require you to fill in a field for the city you live in. For example, if you start typing "Auro" you'll see "Aurora CO, USA, Aurora IL, USA, Aurora ON, Canada" and so on in a pulldown. How is this implemented? I've seen sites that allow you to search for countries and regions in various countries but to use those you'd have to do an Ajax request to look up regions in a country and cities in a region on your back end. I don't understand how you can get a list of cities around the world and the region and country they're in as you type in a city's name. Thanks.


r/Web_Development • • Jul 22 '20

Show "L SEP" character on Mac (only shows on Chrome for Windows)

2 Upvotes

I'm trying to replicate the experience of Chrome on Windows, but from a Mac, to check for an error. Our nonprofit uses a donation management tool that seems to insert "L SEP" characters when we update custom text (even if I paste it in as plain-text). This is invisible on Chrome (and any other browser) on my Mac, and seems to only be an issue when donors view it from Chrome on Windows.

I think I know how to FIX the issue, but I have a hard time knowing WHEN it's occurring without seeing it. How can I reproduce this error/issue on a Mac? Thanks!


r/Web_Development • • Jul 22 '20

Validating the architecture for a dashboard project (Vanilla JS, node, Express, MySQL)

3 Upvotes

Hi, I need help from community to validate the architecture I have planned for my next project and clarify a few doubts as well.

I am new to web development, started learning in Feb 2020, so far I have built fronted only projects alongside some practical examples on node and express and now I am working on a full stack app.

The application I am working on is a dashboard with charts (using C3) and tables (using bootstrap-table) and will have to pull data from server I am setting up (nodejs, Express and MySQL for backend).

I have not delved into learning JS frameworks like Rract or Angular yet, but will do so once I am done with current project. In the meantime, I want to use Vanilla JS to build sort of SPA which pulls data from API server and gives similar user experience as react provides.

The flow I am planning is:

  1. Login Page (uses SSR with EJS as templating engine)
  2. Load the SPA (pulls data using API)

I hope so far I have been clear on my setup, if not please do let me know!

Now, questions I have:

  1. Is it prudent to have a mix of SSR and API based frontend like I am thinking or should i have Login page handled with SPA as well?
  2. Should I run a separate nodejs server to push my SSR and SPA and separate for API? Or running it all on one server is fine?
  3. I am still reading up on implementing login authentication and API authentication using OAuth2.0, but from my understanding so far, I should be able to insulate my API so that SPA only loads once login is approved and no one with direct API path can just access my data. Am I thinking correct?

If you reached here, then thanks a lot for reading the wall of text I have put up and if you know the answers then please do comment below or DM me!

TLDR: New developer, need help validating architecture!


r/Web_Development • • Jul 21 '20

How can I improve a website I made in less than 12 hours?

6 Upvotes

I am a 17-year-old junior website developer. I have made very few websites for other people and even less for myself, so I am still a beginner to website development. As a challenge, I attempted to make a website about the corona-virus in the United Kingdom in no more than 12 hours, without any frameworks or web-assistance (apart from information about the virus). This was the result. First of all, what do you think? Is the website decent for 12 hours of work without any internet help? And most importantly, how could I improve this website? I am applying to university for Computer Science in 3 months and having a functional, informative website puts you at a high advantage in the UK among all candidates.

Any advice is appreciated. I am always open to learning new concepts.


r/Web_Development • • Jul 22 '20

Scope of Work Help Needed for a blog

1 Upvotes

Hi

We are building a medical and health news blog (something similar to WebMD, Health line) . We already have a basic blog in place with approx 500 articles.

Now, we want to make the platform more interactive and advanced, user friendly. We are giving this project to a software development agency.

Can anyone help me with a standard scope of work? Even if its for some different type of platform - there are still a lot of features and functionalities that are common to all.

It'll be great great help!

Also, any inputs are most welcome on what all functionalities we should have to make it better for the user :)


r/Web_Development • • Jul 21 '20

technical resource #css3 practice , keyboard with complete css and small js for toggle gradient.

1 Upvotes

r/Web_Development • • Jul 20 '20

technical resource todocheck - a static code analyzer for annotated TODO comments

3 Upvotes

r/Web_Development • • Jul 20 '20

Need Urgent Help!

1 Upvotes

I have a task to submit tommorow. I have my front end ready but I have to add one text box which is not alligning well. Please can someone help me in DM? I would be grateful. just want to add a nice text box thats all


r/Web_Development • • Jul 14 '20

Best way to structure Database and API calls for an achievement system.

5 Upvotes

Hi, i will be doing a pilot test for an app in a few months and one of the features that I need to develop is an achievement system that will show the achievements unlocked and in progress for each user. I am wondering what would be the best way to structure this... The achievements will be showcased in 2 different formats, a mobile app and a web app.

One of my constrains is that my database is relational, right now using Postgres SQL.

What I am planning to do is the following: After each user creates its account, a a row is generated for each achievement. So let´s say, if my app has 500 users and the app has 6 achievements, this means a total of 3000 rows. This row essentially has the user_id, achievement_id and a boolean stating whether it is completed or not.

My main problem isn´t dealing with the fact whether the achievement has been unlocked or not, this is a simple boolean variable, an extra column, the main issue is keeping track on the progress of all the achievements each time the user tries to visit the dashboard. I feel like the query needed to compute the progress for each achievement will take too much time. I am just wondering if there is an alternative to store the individual progress for each user on each achievement. Maybe I should store the progress in memory for the mobile app ?

Id love to get some feedback on how to approach this feature. My main concern is the api calls being too slow.


r/Web_Development • • Jul 13 '20

Google Maps API require billing?

7 Upvotes

Hi! Does anyone experienced adding google maps api in your website and not working? Did you add your billing? How much does it cost?


r/Web_Development • • Jul 10 '20

Hosting without changing DNS

5 Upvotes

This is probably a basic question, but I couldn't find the answer online. Probably because I wasn't searching for the right thing.

So I have a domain and email (Microsoft 365) through GoDaddy. Cant move these as the email is already in use by the company.

Hosting is through HostGator due to price.

So this is where I encountered my problem. Changing the DNS so that the hosting matches the domain works. But the email stops working because the DNS has changed.

How do I get around this issue? I there a way to direct the webpage to the domain without changing the DNS maybe?


r/Web_Development • • Jul 08 '20

SSL Certificate on a personal website

9 Upvotes

Hi all,

Is it worth paying for a SSL Certificate on a personal website? I have a wordpress site for my photography, blogs and stuff. I'm using host gator for hosting and they want to charge $35 per year. Is there a free way to do it (that is not too difficult)? Is it even worth doing? I would like to have a professional website and it does annoy me it says "not secure". Does it effect SEO and rankings?

thanks in advance


r/Web_Development • • Jul 08 '20

Very beginner question.

2 Upvotes

There is a client that I work for that has two links within their menu that point to two subdomains. They work with https://www.milesaddict.com/ and a job posting board.

travel.brandname.com and jobs.brandname.com.

I've checked the DNS and cPanel for those subdomains. I haven't seen a trace.

Where would I look to see how my client's site is set up, and how these subdomains exists? How are they being called?


r/Web_Development • • Jul 08 '20

Working for shares instead of money?

8 Upvotes

Is this a good idea, or is it pretty much just a way for startups to get their product going without having to pay money?

Is it beneficial at all to undertake a job that operates this way?

EDIT: Thanks for all the answers, I appreciate it! It seems that the likelihood of failure is a lot higher than that of the shares panning out to be worth it.


r/Web_Development • • Jul 07 '20

Best way to host and protect a web app with an api?

5 Upvotes

I'm struggling to understand what is the best way to host my project.

Backside: Node API- I'll host this in Heroku because is easy

Frontside: React App - I'm thinking in hosting the app in S3 but I've never used and I'm not sure if that is the best option. For example, I'm not sure what are the pros and cons against Netlify

Security: My idea was to use Cloudflare as a CDN and "firewall". The idea is to protect my app from different attacks and I think Cloudflare could be a good option. My question is related to my app "architecture". I'm not really sure how can I protect both pieces (front and back). Is it possible to configure Cloudflare to use it for both? or do I need 2 Cloudflare accounts?


r/Web_Development • • Jul 01 '20

Client Review Process Tips?

11 Upvotes

My agency is looking for ways to make our client review process more efficient. How do you collect changes for a dev/staging site from your clients? Emails can get overwhelming and some clients won't batch changes. We currently use a spreadsheet that we ask they dump all changes into and then I can color code lines in the spreadsheet as they are complete. That works okay but I feel like there has to be a better way around this process so I'm looking for inspiration. I've used a few feedback tools but they have always been clunky and another thing for the client to learn. Any thoughts? What has worked for you?


r/Web_Development • • Jul 01 '20

Quantifying performance gain from removing async HTTP req

2 Upvotes

TLDR: removed async req to JS file and bundled it up with my JS - how can I measure the performance gain/loss?

I have a SPA website where there is an async request to a JS file on initial entry to the site. The JS in the response is synchronous and executes as soon as it has been fetched by the browser.

I want to remove this async request and actually bundle it up as part of my bundled JS removing the need to make the HTTP request. Before I do this though, how would I go about quantifying the performance gain from this change? I am looking at how I should get specific numbers using the Chrome performance panel.

Thanks in advance!


r/Web_Development • • Jul 01 '20

Clear Browser Cache - programmatically

1 Upvotes

Is there a way to programmatically clear browser cache? I am working on an application and started having the client test it. This application is still in the development process but when I make a change I would like the client tester to be able to get the fresh files without having to instruct them to 'ctrl + shift + R'.....

Does webpack help with this?

Thanks!


r/Web_Development • • Jul 01 '20

technical resource My first JS library - Recipes parser JS

1 Upvotes

Hi all, I just release my first library on npm, recipes-parser.js. (https://github.com/Charlie85270/recipes-parser)

It's library to parse instructions of recipes and extract aliment, quantity and units. I use pegjs and NLP (Natural Language Processing).

What do you think about it ? About the code ? Have you some ideas to improve it ?

Every feedback is welcome !

Thanks a lot !


r/Web_Development • • Jun 29 '20

Beginner question on APIs and load times

2 Upvotes

I'm building a small calendar web app for fun in which I call an API for weather data for the week(openweathermap), and refer to a web/cloud database (Firebase) to store and retrieve data for the user-written notes for each day on the calendar.

I was wondering if calling APIs is something that becomes cumbersome on bigger projects. Since it's not necessary to load the weather API every single time the 'calendar app' opens, I could have it just run the first time the user opens the calendar app each day.

For instance, when the user starts up the web app:

  1. Retrieve data from database (the weather data that was last stored, users notes+schedule)
  2. Check the value of a variable in the database to see if the weather API was already called that day. Ex. "userAccessedToday" (true/false)
  3. If true, do *not* run weather API script. If false, run the script and store the data I want from it in the database

Am I overthinking this? Is there a rule of thumb when it comes to calling different servers to reduce load times?

Thanks.


r/Web_Development • • Jun 28 '20

How to build large web applications?

9 Upvotes

Last Edit 29.06.20

Hello people,

I want to create a reference with this sub, I will with time edit this post an updated it so that basic questions are being answered here. Not expecting to get all the answers today but over time.

I am talking about app size of around 10k to 100k unique users a day.

I would structure the discussion into 6 main parts:

  • Database
  • Availability/Scalability
  • Backup/Update System
  • Frontend
  • Backend
  • Hardware

I have several questions about all of the above topics. So I guess best would be if someone could point out a good How to article or so? https://github.com/donnemartin/system-design-primer

**Prologue:**All your apps you will build should be scalable, hence it is important right from the start to write productive code which is fast. after you deployed your app and you get to 1000 user/day you should start to worry about scalability. - oxxoMind -

Database:

Should the app just have one DB server or is it better to create a db server on each server where your app is running?

The app should only have one DB server!!

What is the best practice to organize your data in such a big project?
https://www.youtube.com/watch?v=ztHopE5Wnpc&list=PLi3-QrBe5joj8KNlMGfyFYcUJSBOgSrsf&index=2&t=0s

Availability/Scalability:

Is it necessary to have the app running on several server or ist it better to just scale the server?-Answer-

*What is the best practice to structure a productive app with several servers?*What I read so far it is best that you have a system in place which pings the server and asks which one has the freest processing power and then the request will be sent to the responding server. How can you set up something like this?

Backup/Update System:

What are the different backup systems you can place to backup your db?-Answer-

Frontend:

Does it make sense to not use a template engine, instead just fetch the data as json or xml and visualize the data via js (with vue, react, angular, etc.)?-Answer-

Backend:

*I know it is not that important about the language and framework choice although I think it should be considered. So I will just ask is it better to use a compiled language or interpreted language? And would be a transition be easy?*My personal favorite choice would be php (before it ends in a discussion I do like python as well). If I would use a compiled language it probably is Java.

Hardware:

Is there an "easy" way to estimate the required processing power?-Answer-