Is it bad practice to use the same express server for both backend and frontend?

This page summarizes the projects mentioned and recommended in the original post on /r/expressjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • Newman

    Newman is a command-line collection runner for Postman

    Otherwise, you should def build out a proper frontend service. I can't speak for Vue, but Angular is a good one to onboard with quickly since you already know JS and HTML. Either way, I'd recommend forgetting about anything frontend for the moment and focusing on building out the backend. It's easier to build a frontend (or even just one HTML form) when you know what the data you're going to request and receive will look like, if that makes sense. If you're not familiar with RESTful API structure, take a look at this article. Postman is a popular and good tool for interacting w an API when you don't have a frontend. If you don't want to be bothered w manually testing your API, write unit tests with a library like Jest, which is also a best-practice.

  • jest

    Delightful JavaScript Testing.

    Otherwise, you should def build out a proper frontend service. I can't speak for Vue, but Angular is a good one to onboard with quickly since you already know JS and HTML. Either way, I'd recommend forgetting about anything frontend for the moment and focusing on building out the backend. It's easier to build a frontend (or even just one HTML form) when you know what the data you're going to request and receive will look like, if that makes sense. If you're not familiar with RESTful API structure, take a look at this article. Postman is a popular and good tool for interacting w an API when you don't have a frontend. If you don't want to be bothered w manually testing your API, write unit tests with a library like Jest, which is also a best-practice.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts