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
12 upvotes·12.9K views
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
6 upvotes·33.1K 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
4 upvotes·36K views
Replies (1)
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
9 upvotes·36.4K views
Replies (2)
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
16 upvotes·10.5K views

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
3 upvotes·6K views
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
15 upvotes·14.8K views
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·9.2K 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·69.5K 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·34K 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·33K 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·77.2K 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·47.7K 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·47.8K 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·23.1K 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.7K 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.1K 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·41.9K 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)