DEV Community

Discussion on: Use gRPC with Node.js and Typescript

Collapse
 
devaddict profile image
Aria Azadi Pour

If you are reffering to the text like /src, / means the root directory of the project.

Collapse
 
onkeltem profile image
Artiom Neganov

Ah, that's the source of the confusion.
/ never actually means the root of a project. It's always the root of the filesystem.

E.g. this:

/proto: proto buffers folder(I will explain more later)
/src: the source directory
/src/server: server directory
/src/client: client directory
/src/proto: auto generated code from proto buffers

should read:

proto/: proto buffers folder(I will explain more later)
src/: the source directory
src/server/: server directory
src/client/: client directory
src/proto/: auto generated code from proto buffers

Thread Thread
 
devaddict profile image
Aria Azadi Pour

Yes, but when used in this manner it is generally regarded as the root of the project.