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

279
Views
how to create router to file in other folder in nodejs

I have a problem with creating a router connect to file in another directory. there are 2 folders containing code in my workspace is "code FE" and "code BE". The code FE folder contains the HTML and CSS files that have already been built. now I want to build the back-end and create a router to file in code FE (example here is register router and login router). Additionally, I want when I click on localhost:3000, It will give me to the home page. and when I click to signup button on the home page, it will give me to register with a router like 'localhost:3000/register'. sign in too. How can I do all this. here are directories in "code FE" folderenter image description here

file index.html is the main page. CSS file in asset folder and here are directories in "code BE" folder enter image description here

page.js is where I set up a router

everyone please help me!

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!