Heitor
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
yeah i have node, not sure what is happening there, sorry i could not help much 😕
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
and before i started the project, with npm init -y
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
just
npm i quagga
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
import Quagga from 'quagga';
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
maybe try changing the require to ES6 module import
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
not sure, I installed the library with npm, created a file index.js with the example and ran "node index.js" in the terminal
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
oh, i tested it with this in the first line and it worked, maybe try it
var Quagga = require('quagga').default;
29 replies
KPCKevin Powell - Community
•Created by Matt on 3/6/2024 in #back-end
Installing a library with JS
did you run npm install in your project folder?
29 replies
KPCKevin Powell - Community
•Created by glutonium on 1/29/2024 in #back-end
req.body returns undefined
I managed to get the data from the form using multer
https://github.com/expressjs/multer
install it with npm and add the following in your code:
50 replies
KPCKevin Powell - Community
•Created by Brightie on 1/27/2024 in #back-end
Help setting up
nice good luck learning back-end 😁
24 replies
KPCKevin Powell - Community
•Created by Brightie on 1/27/2024 in #back-end
Help setting up
netlify you can use most front end frameworks too, like Next, Nuxt, Astro, etc
24 replies
KPCKevin Powell - Community
•Created by Brightie on 1/27/2024 in #back-end
Help setting up
I don't think you can deploy this project on netlify, it's a node server
24 replies
KPCKevin Powell - Community
•Created by Brightie on 1/27/2024 in #back-end
Help setting up
the gihub project looks fine
24 replies
KPCKevin Powell - Community
•Created by Brightie on 1/27/2024 in #back-end
Help setting up
you need to set up a backend server, if you are doing it in github.
There are some free options that you could use, I recommend https://render.com/ they have a nice free tier.
Or you could use the replit starter they provide https://replit.com/github/freeCodeCamp/boilerplate-npm
24 replies
KPCKevin Powell - Community
•Created by DimitriUI on 12/11/2023 in #back-end
Should i learn PHP or ASP?
What languages do you know?
Node.js is a good option since you already is using javascript in the frontend.
7 replies
KPCKevin Powell - Community
•Created by glutonium on 11/18/2023 in #front-end
run function once but globally in react
I think you can create a custom hook and call it on the pages, or even use it globally
6 replies
KPCKevin Powell - Community
•Created by rahim on 11/14/2023 in #back-end
How to deploy a mern stack project
I used heroku on the past, i think you can use most of the SaaS platforms like render, cyclic.
4 replies
KPCKevin Powell - Community
•Created by unluqy on 11/13/2023 in #front-end
Running into an issue when viewport reaches a certain threshold
basically that + rem it's just so if someone is wants to zoom in the browser it makes the zoom works in the font too if it is in the middle value, it is not necessary but its good to have it
30 replies
KPCKevin Powell - Community
•Created by unluqy on 11/13/2023 in #front-end
Running into an issue when viewport reaches a certain threshold
yeah that is right
30 replies
KPCKevin Powell - Community
•Created by unluqy on 11/13/2023 in #front-end
Running into an issue when viewport reaches a certain threshold
The middle value for clamp is the preferred value, its a expression, that will be the used value as long as it is between the minimum and the maximum.
for example:
font-size: clamp(2rem, 5vw + 1rem, 10rem);
so as long as the result of the 5vw + 1rem is between the values of 2rem and 10rem it will be the used value.
30 replies