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

270
Views
How can I query my DB from a simple Javascript code?

I want to generate automatically a sitemap.xml file. For this, in my npm command, I want to call "node config/sitemap.js" before calling webpack for generating my front-end bundle.

However, if I do import mongoose or require mongoose whatsoever, node will complain it does not find the module. Does that mean I need to have another webpack configuration just for the sitemap generator? What should be the minimum in order to be able to query a DB and generate a file?

Is this the way to go? Or do you have any other way to achieve what I want?

Thank you in advance and regards

about 4 years ago · Juan Pablo Isaza
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!