0

Actually , I am beginner in nodejs field . So want to know where to place(folder name) what file (like html file , css file , js file other files).

What is the correct folder structure(formating) of the nodejs web application.

ie...

public folder is for (html , css , image etc)

I am confused. Can you help. And want to know what is the need of this type of folder convention.Is it is a standard or any other reason. ?

Ankur Singh
  • 916
  • 1
  • 9
  • 19

1 Answers1

0

You can create to folder in your main project.

lib - this will hold all the server related logic.

public - this will have the client side related files. here you can create the sub folders named as : html, css and js. At the time of execution this folder you can serve as static files.

main

---lib

---public

--------html

--------css

--------js

server.js

config.json

suyesh
  • 639
  • 1
  • 10
  • 19