Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

276
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda