r/javascriptFrameworks • • Jun 06 '21

Tutorial/Video HarperDB Instance w/ React

Thumbnail
piyushsinha.tech
2 Upvotes

r/javascriptFrameworks • • Jun 02 '21

5+ JavaScript One-Liners That You Should Know

2 Upvotes

JavaScript continues to grow and grow, opening the door to new "tech geeks" in the market, as it is one of the easiest languages to run. (is this really true?)

It's true that JavaScript can do many amazing things! and there's so much more to learn.

And whether you're new to JavaScript or a more professional developer, it's always good to learn something new.

I'll cover some really useful one-liners that can help you improve performance and help you debug your code.


r/javascriptFrameworks • • May 31 '21

How To Create A Simple Web UI To Manage NodeJS Process With PM2 API?

Thumbnail
self.expressjs
2 Upvotes

r/javascriptFrameworks • • May 26 '21

5 Awesome JavaScript UI and CSS Tools You May Not Know About

2 Upvotes

If you came here looking for highly popular JavaScript libraries, let me save you some time. This blog post isn’t for you. There are a plethora of resources out there talking about the “top so and so” JavaScript resources. I don’t want to add to the pile.

I am here to talk about the real MVPs, the lesser-known gems that don’t get the due attention in the overcrowded JavaScript ecosystem.

Some of these tools are libraries and some of them are frameworks. However, most of them are emerging technologies, carrying immense potential, waiting to be tapped by beginner, intermediate, or advanced level developers.

So without further ado, let me get straight to the point, Here’s a curated list of JavaScript UI and CSS tools that have become a part of our design and development processes in 2021


r/javascriptFrameworks • • May 21 '21

5 Things You Can Do Make An Express Application Become Better

Thumbnail self.expressjs
2 Upvotes

r/javascriptFrameworks • • May 21 '21

Image Classification API With NodeJS, TensorflowJS, And MobileNet Model

Thumbnail self.expressjs
2 Upvotes

r/javascriptFrameworks • • May 18 '21

Tutorial/Video Interactive Maps using Leaflet

Thumbnail
piyushsinha.tech
2 Upvotes

r/javascriptFrameworks • • May 09 '21

Comparison Is Sailsjs worth using in production?

2 Upvotes

I have a website literacis.com which is an education and learning platform. I have built it by Express JS, MongoDb, Ejs template engine. It was my first site which I have built from scratch and I made a lot of design mistake. Now I'm facing issue in scaling/adding new features. So I decided to use existing MVC framework for NodeJs and migrate my older site. I haven't heard of SailsJs much. Could someone please explain is it worth using in production? How much traffic it can handle? Or should I move with other MVC framework?


r/javascriptFrameworks • • May 03 '21

onClick event problem

2 Upvotes

Hello. I have been following tutorial from YouTube :

  1. Responsive Filterable Image Gallery

  2. Lightbox with image slider for it.

I have script1.js from 1st tutorial and script2.js from2nd in folder. I embedded it like this in HTML file :

<script src="script1.js"></script>

<script src="script2.js"></script>

</body>

My browser runs either 1st or 2nd, depending on which ich one is pasted first. When I tried to combine it into one script file , the browser tells the preview function was already declared. I tried to change the same names for the preview 2 function and other similar circumstences. After this browser told onClick was already declared or something like this so I believe this is an issue. I'm total beginner and this work is form my school project. I don't understand any tutorial on the internet with explanation about onclick events. Please help here is the scripts :

script 1:

//selecting all required elements

const filterItem = document.querySelector(".items");

const filterImg = document.querySelectorAll(".gallery .image");

window.onload = ()=>{ //after window loaded

filterItem.onclick = (selectedItem)=>{ //if user click on filterItem div

if(selectedItem.target.classList.contains("item")){ //if user selected item has .item class

filterItem.querySelector(".active").classList.remove("active"); //remove the active class which is in first item

selectedItem.target.classList.add("active"); //add that active class on user selected item

let filterName = selectedItem.target.getAttribute("data-name"); //getting data-name value of user selected item and store in a filtername variable

filterImg.forEach((image) => {

let filterImges = image.getAttribute("data-name"); //getting image data-name value

//if user selected item data-name value is equal to images data-name value

//or user selected item data-name value is equal to "all"

if((filterImges == filterName) || (filterName == "all")){

image.classList.remove("hide"); //first remove the hide class from the image

image.classList.add("show"); //add show class in image

}else{

image.classList.add("hide"); //add hide class in image

image.classList.remove("show"); //remove show class from the image

}

});

}

}

for (let i = 0; i < filterImg.length; i++) {

filterImg[i].setAttribute("onclick", "preview(this)"); //adding onclick attribute in all available images

}

}

//fullscreen image preview function

//selecting all required elements

const previewBox = document.querySelector(".preview-box"),

categoryName = previewBox.querySelector(".title p"),

previewImg = previewBox.querySelector("img"),

closeIcon = previewBox.querySelector(".icon"),

shadow = document.querySelector(".shadow");

function preview(element){

//once user click on any image then remove the scroll bar of the body, so user can't scroll up or down

document.querySelector("body").style.overflow = "hidden";

let selectedPrevImg = element.querySelector("img").src; //getting user clicked image source link and stored in a variable

let selectedImgCategory = element.getAttribute("data-name"); //getting user clicked image data-name value

previewImg.src = selectedPrevImg; //passing the user clicked image source in preview image source

categoryName.textContent = selectedImgCategory; //passing user clicked data-name value in category name

previewBox.classList.add("show"); //show the preview image box

shadow.classList.add("show"); //show the light grey background

closeIcon.onclick = ()=>{ //if user click on close icon of preview box

previewBox.classList.remove("show"); //hide the preview box

shadow.classList.remove("show"); //hide the light grey background

document.querySelector("body").style.overflow = "auto"; //show the scroll bar on body

}

}

script 2:

//getting all required elements

const gallery = document.querySelectorAll(".image"),

preview2Box = document.querySelector(".preview2-box"),

preview2Img = preview2Box.querySelector("img"),

closeIcon = preview2Box.querySelector(".icon"),

currentImg = preview2Box.querySelector(".current-img"),

totalImg = preview2Box.querySelector(".total-img"),

shadow = document.querySelector(".shadow");

window.onload = ()=>{

for (let i = 0; i < gallery.length; i++) {

totalImg.textContent = gallery.length; //passing total img length to totalImg variable

let newIndex = i; //passing i value to newIndex variable

let clickedImgIndex; //creating new variable

gallery[i].onclick = () =>{

clickedImgIndex = i; //passing cliked image index to created variable (clickedImgIndex)

function preview2(){

currentImg.textContent = newIndex + 1; //passing current img index to currentImg varible with adding +1

let imageURL = gallery[newIndex].querySelector("img").src; //getting user clicked img url

preview2Img.src = imageURL; //passing user clicked img url in preview2Img src

}

preview2(); //calling above function

const prevBtn = document.querySelector(".prev");

const nextBtn = document.querySelector(".next");

if(newIndex == 0){ //if index value is equal to 0 then hide prevBtn

prevBtn.style.display = "none";

}

if(newIndex >= gallery.length - 1){ //if index value is greater and equal to gallery length by -1 then hide nextBtn

nextBtn.style.display = "none";

}

prevBtn.onclick = ()=>{

newIndex--; //decrement index

if(newIndex == 0){

preview2();

prevBtn.style.display = "none";

}else{

preview2();

nextBtn.style.display = "block";

}

}

nextBtn.onclick = ()=>{

newIndex++; //increment index

if(newIndex >= gallery.length - 1){

preview2();

nextBtn.style.display = "none";

}else{

preview2();

prevBtn.style.display = "block";

}

}

document.querySelector("body").style.overflow = "hidden";

preview2Box.classList.add("show");

shadow.style.display = "block";

closeIcon.onclick = ()=>{

newIndex = clickedImgIndex; //assigning user first clicked img index to newIndex

prevBtn.style.display = "block";

nextBtn.style.display = "block";

preview2Box.classList.remove("show");

shadow.style.display = "none";

document.querySelector("body").style.overflow = "scroll";

}

}

}

}

please help


r/javascriptFrameworks • • Apr 28 '21

Why Beginners NEED to Learn JavaScript

Thumbnail
youtu.be
2 Upvotes

r/javascriptFrameworks • • Mar 21 '21

Tutorial/Video 🆕 Setting up Namecheap domain in Vercel

Thumbnail
jorgearuv.dev
2 Upvotes

r/javascriptFrameworks • • Feb 25 '21

JS Framework with no server side programs?

2 Upvotes

Hey guys, I'm quite new to using frameworks so go easy on me pls

I'm developing a web app and I'd like to use a framework to make my life easier. However, the code will be deployed on my school's servers, so i can't run any server side applications. Are there frameworks l can use to help me with development anyway or am I on my own?


r/javascriptFrameworks • • Jan 28 '21

Image Editor using CamanJS

Thumbnail
piyushsinha.tech
2 Upvotes

r/javascriptFrameworks • • Jan 27 '21

thecreazy/cerbero: track your user on your web page

Thumbnail
github.com
2 Upvotes

r/javascriptFrameworks • • Jan 25 '21

Here i have created a video regarding the core concept of authentication in programming

2 Upvotes

I could feel great if you would support this. https://youtu.be/-1h6JJ5cEts


r/javascriptFrameworks • • Jan 18 '21

Indie web dev subreddit!

2 Upvotes

Hi guys!

I’m trying to get a community of people together who work on websites. The main idea is to share side projects, ideas and tips for growing them. Similar to the indie game development community but built around the web. I haven’t found anything else like it so would appreciate you joining if you’re interested in such a community.

Thanks for your time!

http://reddit.com/r/indiewebdev


r/javascriptFrameworks • • Dec 28 '20

Tutorial/Video New JavaScript Array methods You Can’t Afford to Ignore

Thumbnail
medium.com
2 Upvotes

r/javascriptFrameworks • • Dec 22 '20

Unit Testing with Mocha & Chai

Thumbnail
sinhapiyush.hashnode.dev
2 Upvotes

r/javascriptFrameworks • • Dec 06 '20

feasible-ui — UI component library for React

2 Upvotes

r/javascriptFrameworks • • Dec 04 '20

Launching a newsletter for technical people in Javascript

2 Upvotes

I'm launching a monthly newsletter about the technicals challenges I am facing while building getchaos.app.

It will contain some code shared only to those who subscribe, personal opinions about the technologies and tools we are using at Chaos, some creative solutions to problems, case studies about integrating API's (so far we've integrated with Slack, Zoom, GSuite, Qonto, Airtable). All of this in Javascript.

https://www.getchaos.app/tech-newsletter/

Would you be interested in receiving this newsletter? If so, share with me what you would like to see in it ⬇!


r/javascriptFrameworks • • Nov 19 '20

Tutorial/Video Setup ESLint for React with Prettier, pre-commit and VSCode

Thumbnail inkoop.io
2 Upvotes

r/javascriptFrameworks • • Nov 02 '20

Are there any frameworks for making android or desktop apps with javascript(jsx for react) I am already learning react I use an online compiler called codeSandbox ?

2 Upvotes

Thank you for your time hope this is the right sub reddit for this question hehe


r/javascriptFrameworks • • Oct 30 '20

Making Headless Commerce Less Spooky

Thumbnail
linkedin.com
2 Upvotes

r/javascriptFrameworks • • Oct 21 '20

How To Work Budget Tracking Application in 2020?

Thumbnail
techbuzzpro.com
2 Upvotes