You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,11 @@ Every project should have a set project structure. Project structure might seem
32
32
Here is a general project structure, which I like using:
33
33
34
34
`mkdir src` - One folder where all the code we will write will be included in.
35
+
35
36
`cd src`
37
+
36
38
`mkdir server` - Folder for all the server code.
39
+
37
40
`mkdir client` - Folder for all the client/frontend code.
38
41
39
42
This is a general preference, and the reasoning behind it is that from looking at the structure we understand instantly more or less how the project works.
@@ -49,7 +52,9 @@ More info: https://www.npmjs.com/package/ts-node
49
52
`npm install express @types/express` - Install express and types for express as we are running a typescript application. Notice the changes in package.json.
50
53
51
54
`cd src`
55
+
52
56
`cd server`
57
+
53
58
`touch server.ts`
54
59
55
60
### Building the server file:
@@ -96,4 +101,4 @@ ts-node : The term 'ts-node' is not recognized as the name of a cmdlet, function
96
101
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
0 commit comments