Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!