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

278
Vistas
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
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