ExpressJS

ExpressJS

Application and Data / Languages & Frameworks / Microframeworks (Backend)
SDET at Fincent·
Needs advice
on
ExpressJSExpressJSJavaScriptJavaScript
and
Node.jsNode.js

Needs advice on code coverage tool in Node.js/ExpressJS with External API Testing Framework

Hello community,

I have a web application with the backend developed using Node.js and Express.js. The backend server is in one directory, and I have a separate API testing framework, made using SuperTest, Mocha, and Chai, in another directory. The testing framework pings the API, retrieves responses, and performs validations.

I'm currently looking for a code coverage tool that can accurately measure the code coverage of my backend code when triggered by the API testing framework. I've tried using Istanbul and NYC with instrumented code, but the results are not as expected.

Could you please recommend a reliable code coverage tool or suggest an approach to effectively measure the code coverage of my Node.js/Express.js backend code in this setup?

READ MORE
55 upvotes·102.1K views
Replies (5)
Recommends
on
JavaScript
Node.js

Hello! For your Node.js/Express.js project, it is recommended to use NYC as the code coverage tool. Make sure you configure NYC in package.json, for example:

"nyc": { "reporter": ["text", "html"], "include": ["backend//*.js"], "exclude": ["test//*.js"], "all": true } Then run the test through the command:

nyc mocha path/to/your/test/*/.js Make sure your test cases cover all API endpoints so that the coverage can be accurately reflected.

In addition, for node.js projects, I have a very useful suggestion, that is, before the project starts, you can use a development environment management tool like servbay to perform environment deployment, environment testing, etc., which greatly improves our efficiency

READ MORE
17 upvotes·11 comments·5.6K views
Alpha Star
Alpha Star
·
November 18th 2024 at 11:14AM

I Have built my website in react js. can I change my website in Wordpress or can I make a subdomain in another platform like Wordpress

here my website - https://www.gatewayabroadeducations.com/

·
Reply
hothm uic
hothm uic
·
January 9th 2025 at 7:08AM

Yes, you can either migrate your React.js website to WordPress for easier management or create a subdomain (e.g., blog.yourdomain.com) and use WordPress for specific sections like a blog or store, while keeping your main site intact. My friend’s website, https://sheetzmenu.info/, was successfully migrated from React.js to WordPress.

·
Reply
Harun sorder
Harun sorder
·
November 1st 2024 at 4:14AM

Situs Terpercaya Bandar Togel Online Resmi & Terbaik

Coloksgp hadir sebagai situs terpercaya dalam menyediakan layanan perjudian online, khususnya permainan togel. Bandar togel online Coloksgp telah beroperasi sejak lama dan dikenal sebagai salah satu yang terbaik di Indonesia. Dengan lisensi resmi, Coloksgp menawarkan pengalaman bermain togel yang aman, nyaman, dan menguntungkan bagi para pemain.

#coloksgp #bandar togel #bandar togel online

Please click here: https://ottensflavors.com/

·
Reply
Major Vehicle Exchange
Major Vehicle Exchange
·
October 24th 2024 at 3:05PM

Major Vehicle Exchange

Buy Premium Quality Used Shuttle Buses For Sale that are fully reconditioned from bumper to bumper by a used bus dealer that is inspected, serviced, and road tested.

Page URL: https://getanybus.com/

·
Reply
Imran Hossain
Imran Hossain
·
January 11th 2025 at 5:07AM

https://www.tigerpestcontrol.com.bd/

·
Reply

use SonarCube, that's what i think can help u with code coverage

READ MORE
9 upvotes·3 comments·5.7K views
Major Vehicle Exchange
Major Vehicle Exchange
·
December 18th 2024 at 1:25PM

Major Vehicle Exchange

Buy Premium Quality Used Shuttle Buses For Sale that are fully reconditioned from bumper to bumper by a used bus dealer that is inspected, serviced, and road tested.

Page URL: https://getanybus.com/

·
Reply
Anurag Maurya
Anurag Maurya
·
August 2nd 2024 at 12:54PM

Thanks,

Sure, I will check this.

·
Reply
podextra
podextra
·
December 9th 2024 at 9:04AM

thanks

·
Reply
View all (5)
Needs advice
on
ExpressJSExpressJSNext.jsNext.js
and
PostgreSQLPostgreSQL

Hello, I am building a website for a school that's used by students to find Zoom meeting links, view their marks, and check course materials. It is also used by the teachers to put the meeting links, students' marks, and course materials.

I created a similar website using HTML, CSS, PHP, and MySQL. Now I want to implement this project using some frameworks: Next.js, ExpressJS and use PostgreSQL instead of MYSQL

I want to have some advice on whether these are enough to implement my project

READ MORE
14 upvotes·127.8K views
Replies (1)

Your stack (Next.js, Express.js, and PostgreSQL) is solid, but NestJS might be a better choice than Express.js.

NestJS provides better structure, scalability, and built-in features like authentication and dependency injection. Plus, since it uses TypeScript, your frontend and backend can share the same language, making development smoother.

If you want a more maintainable backend, NestJS is highly recommended.

READ MORE
3 upvotes·821 views
Needs advice
on
ExpressJSExpressJS
and
Next.jsNext.js

Hello, I am building a website for a school that's used by students to find Zoom meeting links, view their marks, and check course materials. It is also used by the teachers to put the meeting links, students' marks, and course materials.

I created a similar website using HTML, CSS, PHP, and MySQL. Now I want to implement this project using some frameworks: Next.js, ExpressJS and use PostgreSQL instead of MYSQL

I want to have some advice on whether these are enough to implement my project.

READ MORE
26 upvotes·134.8K views
Replies (6)
Developer at ViraTrends·

I would use Framework7 React for my frontend and Supabase to store the data. Framework7 is mobile friendly, easy to use, and has tons of prebuilt features and components. Supabase is also easy to setup, has a free tier which allows a decent amount of data storage. And above all; it's API is super easy.

READ MORE
14 upvotes·3 comments·12.5K views
ARC Worldwide
ARC Worldwide
·
December 12th 2024 at 6:26AM

https://www.arc-worldwide.com/

·
Reply
Gateway abroad Jaipur
Gateway abroad Jaipur
·
January 10th 2025 at 5:01AM

https://www.gatewayabroadeducations.com/ made with react

·
Reply
Celtic Attire
Celtic Attire
·
March 22nd 2025 at 3:19PM

Scottish jackets

Scottish jackets and waistcoats are iconic pieces of traditional attire, often associated with Scotland’s rich cultural heritage. Crafted from premium fabrics like wool, tweed, or tartan, these garments combine elegance with practicality.

+92 321 7140161

web.celticattire@gmail.com

Defence Road AKbarabad Pakistan

https://celticattire.shop/product-category/jackets/jacket/

·
Reply

My advice: Next.js, PostgreSQL (supabase). Next.js can handle API routes natively, which eliminates the need for Express.js. You can define your own backend logic, such as handling database interactions (CRUD operations) through these routes. For UI/UX you could make use of Nyxbui + Aceternity (based on shadcn, framer-motion, and some other amazing frameworks/libs/modules). But only combine nyxbui & aceternity if you feel confident with very advanced frontend logic, otherwise just use the basic Shadcn. Do not forget to make good/secure RLS policies and take care how you are handling the caching for your routes when using next.js.

READ MORE
13 upvotes·4 comments·12.1K views
Dubai Call Girls 0525547819 Call Girls Dubai 0525547819
Dubai Call Girls 0525547819 Call Girls Dubai 0525547819
·
October 30th 2024 at 7:06PM

Dubaicallgirls.pro

·
Reply
Prof Aafa
Prof Aafa
·
December 5th 2024 at 6:30PM

Illuminati organization +27730066655 JOIN ILLUMINATI ORDER FOR RICH, WEALTH, FAME, LOVE and LUCK Welcome to the great temple of Illuminati worldwide. Are you a Pastor, Politician, Business man or woman, Musician or an Artist, Are you employed by some company do you want to be famous or you want to become rich or powerful you can achieve your dreams by being a member of the Illuminati with this all your dreams and heart desire can be fully accomplish People say that the Illuminati are exceptionally wealthy. Is that true? call Prof Aafa+27730066655 ,email ,profaafa22@gmail.com

·
Reply
Prof Aafa
Prof Aafa
·
December 5th 2024 at 6:59PM

Illuminati organization +27730066655 JOIN ILLUMINATI ORDER FOR RICH, WEALTH, FAME, LOVE and LUCK Welcome to the great temple of Illuminati worldwide. Are you a Pastor, Politician, Business man or woman, Musician or an Artist, Are you employed by some company do you want to be famous or you want to become rich or powerful you can achieve your dreams by being a member of the Illuminati with this all your dreams and heart desire can be fully accomplish People say that the Illuminati are exceptionally wealthy. Is that true? call Prof Aafa+27730066655 ,email ,profaafa22@gmail.com

·
Reply
windisaputri88888
windisaputri88888
·
January 9th 2025 at 6:08AM

hello i'm pausslot

·
Reply
View all (6)
web developer ·
Needs advice
on
ExpressJSExpressJSReactReact
and
React NativeReact Native

Hi,

I am a student and a junior developer who is a graduating candidate in comp sci major. I am about to start building my final year project which is a real-time messaging application for software developers to Enhance Knowledge Exchange and Problem Solving. It is mainly a chat application with more enhanced features. I am planning to use React and React Native for the frontend and cross-platform mobile apps, Node.js and ExpressJS for the backend, GraphQL for fetching and manipulating data from the backend and PostgreSQL for the database, and finally Socket.IO for the real-time chatting and communication. I would highly appreciate it if anyone here with experience in building similar apps to tell me if I made a good choice or suggest better tech stacks.

Thanks in advance.

READ MORE
27 upvotes·118.9K views
Replies (3)
Front-end dev at Evolve credit·

Your tech stack is solid for building a real-time messaging project.

React and React Native are excellent choices for the frontend, especially if you want to have both web and mobile versions of your application share code.

ExpressJS is an unopinionated framework that affords you the flexibility to use it's features at your term, which is a good start. However, I would recommend you explore Sails.js as well. Sails.js is built on top of Express.js and it provides additional features out of the box, especially the Websocket integration that your project requires.

Don't forget to set up Graphql codegen, this would improve your dev experience (Add Typescript, if you can too).

I don't know much about databases but you might want to consider using NO-SQL. I used Firebase real-time db and aws dynamo db on a few of my personal projects and I love they're easy to work with and offer more flexibility for a chat application.

READ MORE
47 upvotes·9 comments·341.1K views
suwaidi online
suwaidi online
·
July 17th 2024 at 7:30AM

Recommended technology stacks for building a messaging app include programming languages like Java, Python, Swift, or Kotlin, and frameworks like React Native, Flutter, or Ionic

·
Reply
David James
David James
·
July 29th 2024 at 11:40AM

https://theyesnobutton.com/online-yes-no-button/

·
Reply
cafe racer motorcycle jacket
cafe racer motorcycle jacket
·
July 31st 2024 at 7:32AM

k

·
Reply
sunil Joshi
sunil Joshi
·
October 26th 2024 at 5:38PM

trying since 4 months to retrive my companies stackpage still got issue

·
Reply
Loverboy hats
Loverboy hats
·
January 6th 2025 at 3:46PM

Get the ultimate warmth and style with our Charles Jeffrey Loverboy beanie Discover the perfect color and design for you Enjoy Fast Shipping Worldwide

https://loverboyhats.com/beanie/

·
Reply

I built a very similar application with real-time chatting, and I used a very similar stack to yours (MySQL instead of Postgre). The stack that you chose is very good for what you want to make (or have already made since I am 2 weeks late).

READ MORE
16 upvotes·2 comments·30K views
suwaidi online
suwaidi online
·
November 27th 2024 at 7:31AM

MVP for testing and customer feedback, then a simple tech stack like WordPress would do the work.

·
Reply
Adornand admire
Adornand admire
·
June 17th 2024 at 11:20AM

openings out there because there's just more web dev to be done then app development.

·
Reply
View all (3)
Needs advice
on
ExpressJSExpressJSMongoDBMongoDB
and
TypeScriptTypeScript

I'm interested in web back-ends. Currently, I spent some time learning MongoDB + ExpressJS + TypeScript for back-end. I can make a basic application that can Create Read Update and Delete user data (super basic with some authentication that requires you to sign-in to read and be a valid user to delete a user). My current situation is that I wish to have a job in this area as I loved creating this simple application, what are the ways I can get into the industry without having any Computer Science degree?

READ MORE
17 upvotes·25K views
Replies (1)
Web Developer at Tera Telemedicina·

I've heard so many things that I really don't know. Some people say that creating projects on GitHub helps. I got into my current job because my code from a bootcamp I did was better organized than another candidate's.

That was the criterion in the end... He called both of us for an interview and both did well.

Is that a good tiebreaker? I don't know. But a lot of things in life are about luck. Since luck is a skill that can be learned, I'll give you a tip.

Code, program a lot and make it clear to people who search for you on Linkedin, Github, etc. that you know what you're doing and that you're doing it. Because if they search for you and don't find anything, no projects or anything like that will look really bad.

I would trade Express for Fastify.js. It's MUCH better and is maintained by Matteo Collina. He knows a lot about JavaScript, so much so that he's on the Board of Directors of the Open JS Foundation. He is also a TSC (Technical Steering Committee) voting member for Node.js.

I would follow him to learn more about JavaScript backend. But switch to TypeScript as soon as possible. For that, follow Matt Pocock, he is very good at TypeScript.

By the way, it is good to learn No-SQL with Redis too since Mongo died for the industry after the license change. Look for DynamoDB, but don't forget SQL like MySQL and PostegreSQL.

I wish you the best of luck! And happy coding.

READ MORE
2 upvotes·1 comment·1.6K views
Finacus Solutions
Finacus Solutions
·
November 14th 2024 at 12:07PM

Thank you for the thoughtful advice! I appreciate the recommendations on Fastify.js, TypeScript, and databases helpful for my learning path. I’ll be sure to explore those resources. Happy coding!

·
Reply
Needs advice
on
CSS 3CSS 3HTML5HTML5
and
JavaScriptJavaScript

Hi guyz, I'm done with Front End Development (HTML, CSS, JavaScript) and learning MERN( MongoDB, ExpressJS, React, Node.js) so please share some good frontend projects

READ MORE
2 upvotes·15.7K views
Needs advice
on
MongoDBMongoDB
and
MySQLMySQL

Hello, I wanna build an e-commerce website for myself and planning to build for others in the future. I really like Node.js, React, ExpressJS. But I don't know if MySQL or MongoDB is what suits me the best because at the moment I have a webhotel at a hosting provider and I like that setup, setting up emails, and having more control I guess over my situation.

But is there any way I can use MongoDB on cPanel or direct admin except using MongoDB Atlas which costs a lot of money?

Because I have a setup using React, Node, Express, and MySQL and it works kind of well when working in the direct admin panel. But I just wanna make sure I make the right decision now when I start building an e-commerce website both to be cost effective and also not have to learn too many things.

I am also open to tips for example choosing Next.js instead etc if that is actually necessary and would help me in the long run.

READ MORE
5 upvotes·97.6K views
Replies (5)
Recommends
on
MongoDB
MySQL

Why would you allow your decision to be driven by the limitations of a hosting account? MySQL is a relational database, and typically you need a solid understanding of relational database design and SQL. MongoDB as a so called "Document database" is not relational. You can associate several MongoDB collections together if you understand the basic concepts behind, it, but in general, MongoDB does not have nor require a fixed schema. It can do many of the things a relational database can do, particularly if your data fits nicely into a hierarchical structure. It also often appeals to people like yourself that are working with a javascript stack, as the interface to MongoDB is json. If you can install a package onto your host, then you should be able to use MongoDB. With that said, you can do all your development locally using Docker containers. I would not suggest that you let important design decisions be dictated by what one shared host allows you to do.

READ MORE
9 upvotes·35.9K views
Backend Developer at GBarena·
Recommends
on
MySQL

I think you should use MySQL but with php or Python because e-commerce websites needs to be fast and reliable with more admin tools and you’ll find what you need and more in e-commerce when using php or python frameworks with MySQL database.

Example: Using django (python framework) with MySQL gives you administration dashboard that you can use to edit in a lot of things and django also supports a lot of things like generating ready forms linked to the models you generated

READ MORE
5 upvotes·34.8K views
View all (5)
Needs advice
on
Node.jsNode.jsPostgreSQLPostgreSQL
and
Vue.jsVue.js

Hello everyone, I'm new to full stack web development and I'm trying to use Vue.js, PostgreSQL, and Node.js to make a localhost website (if that makes sense).

I've seen no tutorials on how to link the three technologies without using ExpressJS and I was wondering if it is even a good idea to use the said three technologies or whether I should just learn Express.js and watch a Youtube tutorial. Any help/advice/criticism is welcome.

Thank you.

READ MORE
13 upvotes·78.4K views
Replies (9)
Sincerely, we don't care. at Goodvibes·

I do not recommend Vue for a job, learn React or Angular

Additionally Typescript for React is a wise choice. however, you can start using Javascript.

The open source web framework Express.js for Node.js enables programmers to create online apps and APIs. It offers a number of tools and functionality, including as templates, road handlers, renderers, and debugging tools, to make development simpler. The popular Express.js substitutes Koa.js, Hapi.js, Fastify, and Restify are also available.

8+ Hour Stream - 3 Giveaways - Build a Full Stack Forum with Node/Express/Postgres/Vue.js/Bootstrap https://www.youtube.com/watch?v=aqiJQaPDy7o

Look for tutorials on how to build a website, but don't get too caught up in the stack, it doesn't matter at your level. Just have fun, that's my suggestion. If you need some help, feel free to add me on discord

Sergueiovitch#4089

READ MORE
10 upvotes·1 comment·48.9K views
Steven Schkolne
Steven Schkolne
·
April 21st 2023 at 1:07AM

+1 on React over Vue. I would also recommend React over Angular.

+1 Typescript, especially for a new project. Converting to TS can be awkward but if you start fresh it's much easier.

·
Reply

Hi Kelechi,

It is pretty easy. You will need to create and express.js API with Nodejs and have the Postgreql in it. Then you can create your Vue Apps and connect to the express API. This will help; https://www.youtube.com/playlist?list=PLWKjhJtqVAbnadueQ-C5keMQQiQau_i0D

I used a similar setup but I wouldn't recommend it except if you absolutely must. Use something like NuxtJs.

READ MORE
8 upvotes·2 comments·49K views
Andrew Plater
Andrew Plater
·
March 13th 2023 at 11:50PM

If you are starting out with Vue.js and Node.js and wanting to avoid creating servers including local ones running Express.js and are willing to explore cloud services for the database, you may want to consider AWS Amplify or Google Cloud with Firebase to build out your application. While there is a learning curve in using additional technologies, the pay off is that there are tutorials, documentation and videos and there is scope for extending your application if you need to later.

·
Reply
haitaodesign
haitaodesign
·
September 9th 2023 at 4:36AM

good

·
Reply
View all (9)

I'm working on a web app that allows users to create custom models based on their own images using a stable diffusion algorithm. I am considering using microservice architecture and the MEAN stack (MongoDB, ExpressJS, AngularJS, Node.js) for this project. I am new to this and lack experience, so, any suggestions and/or critics would be appreciated!!

READ MORE
4 upvotes·27.8K views
Needs advice
on
Node.jsNode.js
and
PythonPython

I have an online marketplace and I was wondering which framework will be better Django (Python) or ExpressJS (Node.js). I do plan on using ai, ml and do work on big data from transactions and customer preferences regarding products and such. I do understand that Python is slower than Node.Js and I am wondering if both are able to do microservices but, I am still open to some advice and solutions you have for me. Thank you for your help.

READ MORE
8 upvotes·60.8K views
Replies (3)
Independent Information Technology and Services Professional at DR. YORAM KORNATZKY LTD·

ML immediately tilts your decision towards Python as the ML ecosystem is in Python. Microservices can be programmed in Python. However, as you said, Python is slower than Node.js. This leads to a combination of both languages as the ideal solution. A problem in terms of skills, especially for a limited size team. It also raises the question of how you are going to connect the different microservices. If it is Kafka or MTMQ should not be a problem to connect services in the different languages. If you are limited in terms of size of team, choose Python. As you cannot go very far with Node.js for ML.

READ MORE
8 upvotes·3 comments·42.2K views
araz dev
araz dev
·
October 3rd 2022 at 7:49AM

Yes ML or AI thing is python but web developing then node js bc it is really fast enough

·
Reply
Aayan Rahman
Aayan Rahman
·
October 5th 2022 at 8:08AM

I am confused whether runtime speed or development and maintenance speed is more important? and if I put ml and ai in my site a bit later, will choosing Node.JS be better. what is the performance difference in runtime and development between Express.JS and Django?

·
Reply
Harald Fauland
Harald Fauland
·
October 6th 2022 at 5:44PM

when starting out the development and maintenance speed are way more critical. you can also throw hardware at your service for a long time before getting to a critical mass where you have to look into optimizing your stack.

·
Reply

With the info you have shared so far, here's my recommendation: 1. Python ecosystem is very sophisticated for ML, AI. Build models, and perform most of background work via python. You can expose these models and any business logic needed via python Fastapi. 2. Node and js ecosystem is great for building both server rendered and Single page apps - whichever your preference is. You can easily use something like Next.js and build out the marketplace web/mobile application, interact with ML models via an api or directly read the model from node backend. Hope this helps.

READ MORE
4 upvotes·3 comments·42K views
Aayan Rahman
Aayan Rahman
·
October 5th 2022 at 8:08AM

I am confused whether runtime speed or development and maintenance speed is more important? and if I put ml and ai in my site a bit later, will choosing Node.JS be better. what is the performance difference in runtime and development between Express.JS and Django?

·
Reply
Raj Chandrasekaran
Raj Chandrasekaran
·
October 6th 2022 at 7:55PM

Agreed with Yoram's response in this thread.

When you say you want to put ml or ai on to your site, could you elaborate that a bit more?

Since you mentioned online marketplace, my hunch is that you want to use ML or AI for recommendations, search results or even prioritizing the right ads for the shoppers. If that is the only place where you like to use ML / AI, that that part can (or needs to) work with your search infrastructure.

There are two modes of ML application - realtime, and offline

For realtime ML / AI application, there are lot of considerations you have to go through before finalizing the technology. For example, say you are using elasticsearch as your search engine and if you like "personalization" to be a factor in search results, you may want to do offline ML, prepare models, validate which features carry what weights and then apply those weights into your elasticsearch query.

Alternatively if you can also fetch all the results from ES and run through the model to sort them in the order that suits best for a single shopper. It adds more time to respond for search results, but if you can live with that latency that works.

If your usecase is you want to use ML just in offline scenarios, like building a model that satisfies some objective you may want to divide between the work that is needed to analyze, prepare model, test etc AND the work needed to invoke the model at runtime. You can totally use python tech stack for the former and use node js / next js / Blaze js / refine etc for the latter (since node can also invoke a model and return the results).

As a side note, if you are building an entire marketplace, like categories, listings, product page, search, purchase etc AND if the scale is not going to be too high, I would also recommend looking at woocommerce, shopify (paid), magento (open source) etc kind of options to put up a site together. There's a lot to build, not that it is impossible, but it will be more of reinventing the wheel imho.

·
Reply
Yoram Kornatzky
Yoram Kornatzky
·
October 6th 2022 at 7:27AM

If you know both at same level, then Express.js is faster in terms of performance and development and maintenance. And it does not preclude connecting to a ML backend model later. So you can have the bestow both worlds.

·
Reply
View all (3)