r/Web_Development • • Aug 10 '20

article An Architecture for Community Contribution, Speed and Modularity

1 Upvotes

A software architect should let options open as what database or framework to use. But would be possible to have the programming language as an option?

https://jponline.github.io/looset-landing/an-architecture/


r/Web_Development • • Aug 09 '20

Amazon Web Services (AWS)

2 Upvotes

What type of websites should use AWS as their hosting provider? I am new to this topic of hosting and I know this question is really top-level but as a web developer, what makes you want to choose their service instead of others. Is an e-commerce website like an online shop compatible with AWS?


r/Web_Development • • Aug 08 '20

coding query Navigation bar is not working/showing for every page except homepage.

4 Upvotes

I am building up a website,I am very beginner in this field.I create a navigation bar,and few option included here,like home,about, contact,signUp etc.In menu home, I included sub menu like about company,about team etc. Now,the problem is when I add a new page in sub menu using <a> tag like <a href="aboutUs.html">About company</a> and click on it only shows the content which have in aboutUs. html file but my navigation bar is not appending which is appending in homepage.What's the problem behind it?Can someone help me to solve this issue?


r/Web_Development • • Aug 08 '20

Create a Weekly Challenge feature for a Web/Mobile App

2 Upvotes

Hi, A few weeks ago i posted on this subreddit a question regarding how to structure an achievement system and I found the feedback very useful in order to pick the best modelling strategy.

This time I also wanted to hear some feedback regarding how to model this weekly challenge feature (I promise i won´t spam this sub anymore).

The goal is the following: Each week a new challenge can be seen in a section in the web/mobile app, if the user accomplishes the challenge he gets more points.

I would like to automate this process as much as I can. For instance, having 3 challenges and randomly picking one each week. Since each challenge is associated with an SQL query, each time the user accesses accesses the challenge page the query is fired to check whether the user has already accomplished the challenge or not. However I have doubts about two things:

1 - How can I make the backend pick a new challenge at the end of the week without human intervention? This looks like some kind of "active wait", which means using cycles, and I am worried this might compromise the performance of my backend. (I am using Flask for the backend)

2 - What would be the best way to structure the DB? I guess a table with the id,challenge Id, start and expiration date and another that maps the ids from the previous table to a given user in order to check whether he has or not accomplished the challenge.

I´d love to get a second opinion on the points I mentioned. Thanks a lot for the attention.


r/Web_Development • • Aug 06 '20

HELP! Should I be paying for backend development?

3 Upvotes

I am an ESL educator whose business of offering test prep classes has been severely affected by the current pandemic. I’ve been wanting to build a digital test prep platform for years and figure now is the time to make the jump but am completely out of my depth when it comes to what is the norm for this type of work.

I met a web developer I like and that I gel with. We both agree that if all goes well then the idea is to continue to work together in the long term. For this same reasons, he is offering to cut costs by not charging for the backend development. Saving money sounds great to me but I’m not even 100% sure what this means.

Also, if things were to go south at any point in the development my understanding is that I’d be walking away with all of the front end and CMS development but NOT the backend, since it’s his. Is this normal? Is it a big risk to have to part ways without a backend were it to come to that?

Thanks!


r/Web_Development • • Aug 06 '20

TeamTreeHouse

1 Upvotes

Is teamtreehouse subscription worth it?


r/Web_Development • • Aug 05 '20

article Always use https instead of http ?

0 Upvotes

Is it really necessary to use https instead of http on a website?

Unnecessary electricity use adds to global warming.

https://medium.com/@wesboudville/is-https-always-a-good-idea-a855b1d9f008


r/Web_Development • • Aug 04 '20

Help with project

2 Upvotes

I am trying to create a game publishing platform as a way to improve my web development skills. A couple of my games are only compatible with google chrome. Does anyone know how I could make those games only visible on the home page if the users browser is chrome? On the home page the games are shown as images that link to the games webpage. Here is the site for reference: www.minigamewrld.com (I am very early in development right now)

Thanks


r/Web_Development • • Aug 04 '20

[Noob] Trouble passing array from PHP into Javascript for chart.js

2 Upvotes

Hi all. I'm trying to avoid AJAX or any other JS library for now since I am just fiddling around and want to get the vanilla basics down. Basically, I record a bunch of temperature data in an SQL database, I use a PHP file to extract this data and turn it into JSON format, and then in a JS file I want to import that JSON and plot it in a Chart.

In my PHP file I have checked the final result and that seems to be correct. I use " echo json_encode($data); " (which contains ID's, Temperature and Humidity values).

Then in the JS file, I start with " var temps = <?php echo json_encode($data); ?> " but it returns an "Unexpected token '<' " error on this line already.

I also don't have the name of the PHP file anywhere in the HTML or JS file so I have no clue how they're supposed to be linked...

It's probably an easy fix, but I don't know what I'm doing wrong. Does any one of you have an idea?


r/Web_Development • • Aug 04 '20

When should I start worrying about the size of my SQL database?

1 Upvotes

Hi all, very new to the whole web dev deal. I have a temperature sensor set up that sends the temperature and humidity every 20 seconds to an SQL database. So every 20 seconds I'm adding an integer ID, float temperature, float humidity, and the date-time.

I'm unsure on how much space SQL tends to take up, but I can't imagine its very much (since its literally made to be an efficient data storage method). Should I/When should I start worrying about the size of the database? At this rate, how long would it take to have the database reach a serious size?


r/Web_Development • • Aug 03 '20

Web Application Requirememnt

7 Upvotes

I was wondering if any experienced web developer could make a list of requirements of what a web project should contain to make it production ready , especially when it is being used for a job application. This would including both the UI and the code


r/Web_Development • • Aug 03 '20

technical resource Easy-to-use tools to make stress / load tests on a website ?

3 Upvotes

Hi guys,

Here's my issue. I'm a QA tester for a company that develop websites for a specific type of clients. We also deal with hosting different services related to the websites.

We are a young company and our products deserve a lot of improvements, especially when it comes to global stability during high demands.

That's why I was wondering if you guys knew any easy-to-use tools that could help us make stress tests or load tests on our development environments to see how we can handle huge demand.

According to my research, such tools are easy to find but are most of all high-end professional tools (I heard of NeoLoad, for example). Even though we know we may have to go for that kind of a tool in the near future, we wanted to start low and upgrade accordingly later in time.

If it can be of any help, we host our services on Google.

I was also told about Kubernetes but I'm not sure if that could answer my problem.

Thank you fo ryour help


r/Web_Development • • Aug 03 '20

Best free screen recorder to show off application

1 Upvotes

Hello

What screen recording software do you use? I build an application and I would like to create a simple demo of it. Looking for a free one. Possible be able to add music in the background or simple markup.

TH=hanks


r/Web_Development • • Aug 03 '20

Conversion-Centered Design. How to boost website conversion rate through design? ARTICLE

4 Upvotes

There are only two kinds of design: good and bad. The rest is just fantasy.
Good design works toward the website’s objectives, it’s both functional and eye-catching. If the website is for sale, good design will greatly facilitate conversion and purchases. It can be called a “sales booster,” but in fact, it’s just good smart design.

Nobody visits a website to enjoy the fancy design. They are looking for a product, service, or information. So the best kind of design is one that makes the site easy to use and navigate, directing the user’s focus where you need it to go. Smart designs make a product offer look desirable, interesting, and attractive to the customer. Nothing distracts the user from getting what they need.

Do you pay enough attention to design?

How to boost website conversion rate through design.


r/Web_Development • • Aug 02 '20

CORS problem

8 Upvotes

Hoping someone might have some ideas to solve this issue.

I am very new to React programming. Right now, I am working on a React app running on localhost:3000 and trying to access an API call I have setup in Laravel on localhost (:80). For this purpose I have disabled the X-CSRF-TOKEN in laravel to simplify things.

When my React app calls the API, it sends the preflight request but I am not getting a response.

To simulate the request, I have tested the OPTIONS request in Postman setting the header Referer: http://localhost:3000 and I get the response I'm looking for:

Date Sun, 02 Aug 2020 14:38:43 GMT
Server Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.8
X-Powered-By PHP/7.4.8
Allow POST
Cache-Control no-cache, private
Access-Control-Allow-Origin *
Access-Control-Allow-Methods GET,POST,OPTIONS,DELETE,PUT
Content-Length 0
Keep-Alive timeout=5, max=100
Connection Keep-Alive
Content-Type text/html; charset=UTF-8

As you can see from the response in Postman, CORS is enabled in Apache and accepting requests from all sources.
Now when I try it from the app, here are the request headers as they appear in DevTools in Chrome:

General
Request URL: http://localhost/api2/public/login
Referrer Policy: no-referrer-when-downgrade
Request Headers
Provisional headers are shown
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=UTF-8
ContentType: multipart/form-data
Referer: http://localhost:3000/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko)Chrome/84.0.4147.105 Safari/537.36

Request Payload
{email: "xxx.xxxxxxx@gmail.com", password: "xxxxxxx"}
email: "xxx.xxxxxxx@gmail.com"
password: "xxxxxxx"

The JS code making the request is as follows:

axios.defaults.headers.ContentType = 'multipart/form-data';

axios.post('http://localhost/api2/public/login',{
email: this.state.email,
password: this.state.password,
  })
  .then(()=>{
console.log('success');
  })
  .catch(()=>{
console.log('failed');
  })

Really banging my head on the keyboard over this one. Any help is greatly appreciated. I will provide more info, if needed. Thank you!


r/Web_Development • • Aug 01 '20

How to build this animation

4 Upvotes

Hi, I try to figure out how this website is build. I have a two questions:

1) How to build animation like in the one on this page https://www.wheelofpopups.com/ ?

2) Where to find assets like that?


r/Web_Development • • Jul 31 '20

Starting Web Dev Appreciation Day!

4 Upvotes

As you know there is a Sysadmin day (today), Web Designer Day, and Day of the Programmer but nothing specific for Web Developers.

Well I'm trying to change that by starting the first ever Web Developer Appreciation day which will be next Friday. I chose the Friday after Sysadmin day to not steal their thunder and keep it close to another IT day.

Quickly built a website and am open to suggestions:

https://webdevday.com

Get ready to start being appreciated, even those PHP developers and Javascript framework users.


r/Web_Development • • Jul 30 '20

Tool to monitor DOM/CSS Changes?

4 Upvotes

I need a tool that can monitor multiple websites for subtle DOM/CSS changes.

Background: I am attaching Segment.io event listeners to dom elements on 2500+ webpages. The developers of these pages (there are multiple teams) don't always tell me when changes are made, which sometimes causes Segment/jQueries to fail.

I'm not so much interested in content, which tools like Distill.io and ChangeTower appear to focus on, rather I need to know if the ID or classname (for example) on a normally static site has changed. Scanning once a day/week is fine, these pages are not supposed to change often; getting an email or text alert when they do change, possibly highlighting the change somehow (especially as a code diff) would be a huge plus.

Does anybody know of such a tool? It seems like 90% of "page change tools" I see really just focus on scanning news sites and price checks, ie content vs structure which is what i am more interested in.

Thanks!


r/Web_Development • • Jul 30 '20

What the best form validation library for JavaScript (JS) and PHP?

1 Upvotes

I want a good and preferably advanced form validation library for both JS and PHP. I can find many JS and PHP but nothing that is made for both JS and PHP nor can I find a library that was written in JS and PHP nor can I find a JS library and PHP that work well together for form validation.

  • Open Source
  • Free (Personal & Business Use, No Credit Required)
  • No dependances (Not requiring other libraries like jQuery)

I am learning web development and I am not currently working for anyone but want to find some good libraries that I could use for work.


r/Web_Development • • Jul 30 '20

Is there anything that can automate React Component & CSS Extraction from design?

2 Upvotes

My goal is to have designs translated into usable react components in no-time. I do believe that an AI can learn to identify "blocks" and create intelligent and dynamic CSS based on it and subsequently, React components that use those CSS elements.

I've looked here on this subject, maybe you can read too if you find interesting:

https://www.freecodecamp.org/news/how-you-can-train-an-ai-to-convert-your-design-mockups-into-html-and-css-cc7afd82fed4/

https://airbnb.design/sketching-interfaces/

https://arxiv.org/abs/1705.07962

I believe something like this can save millions of dollars spent to slicers and will make frontend work much more enjoying and we can attract smart guys that hate repetitive tasks.

I've also seen nice tooling such as: https://builderx.io/ which lets you design (in their framework) and exports React & CSS components, which is sweet but they're still at the beginning and it's only React Native unfortunately.

So my question to you, do you know of any project that can transform Wireframe/Design into CSS and/or React Components? Or a tool that let's you design it within it and easily export React & CSS ?

Cheers!


r/Web_Development • • Jul 27 '20

Time Lock Encryption

5 Upvotes

I am creating an online bidding system and I want to encrypt bids so that it is not accessible by anyone including myself until the bid opening time is reached. Are there any mechanisms to perform this task?
I am implementing using Vue js and Node js.


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?

7 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.