Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
Creating multiple contact forms on my site

I am trying to create two contact forms on my website using Node.js, and each one requires its own package.json file. I've tried installing the necessary packages so that a package.json file will be created for the second time, but it's not working. It seems I cannot create two in one folder.

Does anyone know what I can do to create a new package.json file for this new contact form in the same folder?

Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you want to have 2 different applications within one single project, you should have to entry points (I think it would be Server.js and Server2.js).

Then you want to run two different instances of the same project: one starting Server.js and another one starting Server2.js. You can do it with two different scripts in the package.json. Example:

// package.json
...
"scripts": {
  "start:1": "node Server.js",
  "start:2": "node Server2.js"
}
...

And you can start them with:

$ npm run start:1
$ npm run start:2

Notice that if both applications run on the same machine, they should run on different ports.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda