#nodejs programming
Explore tagged Tumblr posts
praxis-app · 1 year ago
Text
Tumblr media
join the praxis discord - sign up - github
2K notes · View notes
alycesutherland · 4 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 · 9 months ago
Text
Good to move out
21 notes · View notes
eraepoch · 9 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
kyprogramming · 4 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
33 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 · 1 year 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
funnycoder · 2 years ago
Text
Tumblr media
Lmao
17 notes · View notes
linuxtldr · 1 year ago
Text
2 notes · View notes
praxis-app · 1 year ago
Text
Tumblr media
join the praxis discord - sign up - github
693 notes · View notes
alycesutherland · 5 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
priyanshu2002 · 1 year ago
Video
Build a Real-Time Chat App with Socket.IO | Node.js
2 notes · View notes
alimacs · 2 years 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
wintechaditya · 2 years ago
Text
Started Youtubing
Hello friends my name is Aditya Kumar Currently Studing INFORMATION TECHNOLOGY from Marwari College Ranchi Jharkhand INDIA.. I dont know how to make a best Content i feel i need guidance so help me my friends. Its my youtube Channel link: https://www.youtube.com/channel/UCNyU3jd7-U7ShN2rRpCVriA I uploaded some shorts on Node JS review it my friends ....
3 notes · View notes
hindintech · 2 years ago
Text
You can learn NodeJS easily, Here's all you need:
1.Introduction to Node.js
• JavaScript Runtime for Server-Side Development
• Non-Blocking I/0
2.Setting Up Node.js
• Installing Node.js and NPM
• Package.json Configuration
• Node Version Manager (NVM)
3.Node.js Modules
• CommonJS Modules (require, module.exports)
• ES6 Modules (import, export)
• Built-in Modules (e.g., fs, http, events)
4.Core Concepts
• Event Loop
• Callbacks and Asynchronous Programming
• Streams and Buffers
5.Core Modules
• fs (File Svstem)
• http and https (HTTP Modules)
• events (Event Emitter)
• util (Utilities)
• os (Operating System)
• path (Path Module)
6.NPM (Node Package Manager)
• Installing Packages
• Creating and Managing package.json
• Semantic Versioning
• NPM Scripts
7.Asynchronous Programming in Node.js
• Callbacks
• Promises
• Async/Await
• Error-First Callbacks
8.Express.js Framework
• Routing
• Middleware
• Templating Engines (Pug, EJS)
• RESTful APIs
• Error Handling Middleware
9.Working with Databases
• Connecting to Databases (MongoDB, MySQL)
• Mongoose (for MongoDB)
• Sequelize (for MySQL)
• Database Migrations and Seeders
10.Authentication and Authorization
• JSON Web Tokens (JWT)
• Passport.js Middleware
• OAuth and OAuth2
11.Security
• Helmet.js (Security Middleware)
• Input Validation and Sanitization
• Secure Headers
• Cross-Origin Resource Sharing (CORS)
12.Testing and Debugging
• Unit Testing (Mocha, Chai)
• Debugging Tools (Node Inspector)
• Load Testing (Artillery, Apache Bench)
13.API Documentation
• Swagger
• API Blueprint
• Postman Documentation
14.Real-Time Applications
• WebSockets (Socket.io)
• Server-Sent Events (SSE)
• WebRTC for Video Calls
15.Performance Optimization
• Caching Strategies (in-memory, Redis)
• Load Balancing (Nginx, HAProxy)
• Profiling and Optimization Tools (Node Clinic, New Relic)
16.Deployment and Hosting
• Deploying Node.js Apps (PM2, Forever)
• Hosting Platforms (AWS, Heroku, DigitalOcean)
• Continuous Integration and Deployment-(Jenkins, Travis CI)
17.RESTful API Design
• Best Practices
• API Versioning
• HATEOAS (Hypermedia as the Engine-of Application State)
18.Middleware and Custom Modules
• Creating Custom Middleware
• Organizing Code into Modules
• Publish and Use Private NPM Packages
19.Logging
• Winston Logger
• Morgan Middleware
• Log Rotation Strategies
20.Streaming and Buffers
• Readable and Writable Streams
• Buffers
• Transform Streams
21.Error Handling and Monitoring
• Sentry and Error Tracking
• Health Checks and Monitoring Endpoints
22.Microservices Architecture
• Principles of Microservices
• Communication Patterns (REST, gRPC)
• Service Discovery and Load Balancing in Microservices
1 note · View note