#nodejs programming
Explore tagged Tumblr posts
praxis-app · 11 months ago
Text
Tumblr media
join the praxis discord - sign up - github
2K notes · View notes
alycesutherland · 2 months ago
Text
Progress:
Okay so the authentication for spotify is hard for me to understand and requires user authentication, then making a token request that while expire in an hour. So i focused on what I did know how to do and what I had access to token wise. The Spotify developer home page has a temporary access token for demos. I took that token and made a function to make get request to the API and two functions for top tracks and top artists. Then made some functions to print them in my terminal. Here is what my end product looked like in the terminal.
Tumblr media Tumblr media
The data for tracks is proving to just show a years worth of listening even though I specified long_term in my get request.
Here is my code:
Tumblr media
I tried just doing track.artist but Spotify handles that as multiple artists so I had to handle them as such.
Next Steps: Tackling the user authentication and token requests and including it in this code.
(Also yes I know that is a concerning amount of My Chemical Romance tracks. I had my MCR phase strike up again with a passion last October and I am still balls deep in it.)
11 notes · View notes
rubikx107 · 7 months ago
Text
Good to move out
21 notes · View notes
izicodes · 2 years ago
Text
Build Your Own npm Package!
Tumblr media
Hiya! @kitkatcodes made a post a couple days ago essentially her making her own npm package and I thought it was super cool! I've been busy lately but I gave myself some time to read the tutorial she used and play around making my own!
Link to @kitkatcodes post >> LINK
Tumblr media
The npm package
Tumblr media
Here it is! Took me 3 hours to do this because I got the concept of how to make the package following the tutorial @kitkatcodes used (which is this: LINK) but then I got around playing around with the colours and appearance, as I do~! Then I finally finished and published it!
The main code
Tumblr media
Have a go!
If you have Node.js installed, in the terminal, type:
1. npm i xiacodes-business-card 2. npx xiacodes
Then you should see the output shown above!
Tumblr media
Well, that's all! I had fun making this and thanks again to @kitkatcodes for the initial post! It's super easy to do and fun! Here are some links:
GitHub repo: LINK
My npm package page: LINK
The ASCII art site: LINK
The package to add colours to the output text: LINK
Have a nice day and happy coding! 💗💻
70 notes · View notes
eraepoch · 7 months ago
Text
i made a program to archive the posts on your curious cat account
the code is here: https://github.com/era-epoch/curious-cat-save-account
you just need to have a recent version of node installed on your computer. feel free to let me know if you run into any problems running it ^-^
5 notes · View notes
fangirlinc · 1 month ago
Text
Any MCR fans in software engineering/web dev?
I'm looking for mutuals who love to code and also love MCR. I wanna do a little project >:D also just want some buds to relate to.
Tumblr media
2 notes · View notes
kyprogramming · 2 months ago
Text
youtube
16 -Sign Out (Actions Button) - (Next js 15, React 19, PostgreSQL , Prisma, ShadCN, Paypal, Stripe API integration)
2 notes · View notes
koshekdev · 2 years ago
Text
Project update (Next.js) + little API routing tutorial
So my last post was about setting up my back-end using Node.js and Sequelize. After setting everything up it was time to create needed routes and queries. I didn't look too much into how to do it, just made an api folder, made a .ts file for every table I have in my database and filled it with CRUD operations + whatever additional query was needed.
Tumblr media
After writing all of this I wondered how do I define links for all of these operations? Well as it turns out, when you put files in an api folder in Next.js, they generate by themself, meaning all of my crud operations were now under the same /api/file_table_name link. Obviously that's bad news. It took me 2 days of rearranging (it wasn't hard, just boring XD) and I got this structure
Tumblr media
(This is not an entire structure, just a snippet because the whole structure is kinda big and pointless for demonstration)
So now for getting host/api/tag we have an index.ts file which carries the createTag function which requires just a body that contains new tagName.
For host/api/tag/id we have the [id].ts which carries getTagById and DeleteTag function. Now how do we differentiate between those two operations when they are on the same link?
Tumblr media
At the end of your file you should have a handler function for which you write the cases in which certain operation happen. In this case it only depends on the http method, but it is possible to add other cases such as potential query string (the on that start with ? in the link ex. api/posts?sort=asc). Here's the code example from my /stickerpack/[id].ts file
Tumblr media
So this means the link is going to be host/api/stickerpack/id?type="".
What surprised me was that you don't fetch id with req.params.id, but you fetch everything with req.query, and Next.js I guess just figures out what is a parameter and what is not based on the file name. Another surprising thing is the obvious "id as any" situation XD. It did not work any other way. No idea why. I'll look it up when I get the energy.
That's my wisdom for today, if you have any questions feel free to ask me anywhere XD I'm no professional tho lol
32 notes · View notes
codemerything · 2 years ago
Text
NPM vs NPX
During my first attempt at using React, I was following the installation instructions on the documentation which recommended using the command "npx create-react-app <my-app>". It was then that I realized I was not entirely sure about the difference between npm and npx, as I had been using them interchangeably without fully understanding their functions beyond package installation. This realization inspired me to write an article about the topic. A great explanation lies at the end of the article. Trust!
13 notes · View notes
orbitwebtech · 9 months ago
Text
NodeJS excels in web development with its event-driven, non-blocking I/O model, making it ideal for handling concurrent connections and real-time applications like chat apps and live streaming. Its single-threaded architecture and use of JavaScript, both on the server and client side, allow for seamless development across the entire stack. NodeJS is especially suitable for startups and projects that require fast, scalable, and high-performance solutions.
Java, on the other hand, is renowned for its robustness, security, and platform independence. It is a mature technology with a vast ecosystem and a wealth of libraries and frameworks, such as Spring and Hibernate, which facilitate the development of large-scale, enterprise-grade applications. Java's multithreading capabilities and strong memory management make it well-suited for complex, resource-intensive applications where stability and reliability are paramount.
Choosing between NodeJS and Java ultimately depends on the specific needs of your project. For real-time, scalable applications with a need for rapid development, NodeJS is a compelling choice. For enterprise-level applications requiring high stability, security, and comprehensive tool support, Java is often the preferred technology.
3 notes · View notes
praxis-app · 10 months ago
Text
Tumblr media
join the praxis discord - sign up - github
685 notes · View notes
alycesutherland · 2 months ago
Text
This will be my blog for logging my Spotify statistics website progress :D
Things I want to do for this project:
Show my top 300 artists
Show my top 300 songs
Show my top 50 genres
Show my top 100 albums
Bio page about me
Display my Spotify profile picture
I have made a Spotify developer account and gotten an API key. I'm now just scouring the documentation to try and tackle getting access to my personal Spotify stats (I could just download my listening history but I really want to have my website update).
2 notes · View notes
funnycoder · 2 years ago
Text
Tumblr media
Lmao
17 notes · View notes
linuxtldr · 1 year ago
Text
2 notes · View notes
priyanshu2002 · 1 year ago
Video
youtube
Build a Real-Time Chat App with Socket.IO | Node.js
2 notes · View notes
alimacs · 1 year ago
Text
Estudei um pouco tbm e foi isso.
Continuei no curso de Node.js e fiz algumas anotações sobre process que é um módulo nativo da lib.
Eu vou começar a colocar estudo aqui mais pra me motivar gente kakkaka tô bem vagabunda nesse quesito. Não disse aqui (até pq acho que ninguém se importa hahaha) mas eu sou desenvolvedora, faço programas hahahha
Tumblr media Tumblr media
4 notes · View notes