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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ NodeJS is far too powerful to be limited to just running your website. Whether b
7
7
- Building a worker scripts.
8
8
- Stand-alone scripting and automation tool.
9
9
- Fully customizable project.
10
+
- Forcing you to write clean-easy-to-read code.
10
11
- Clean file structuring.
11
12
- Following standard naming conventions so collaborators/team8s can understand easily your code.
12
13
- Securing your login and api key details by using environment variable -- [dotenv](https://github.com/motdotla/dotenv)
@@ -30,6 +31,11 @@ NodeJS is far too powerful to be limited to just running your website. Whether b
30
31
6. Modify the package.json file. Edit the project name and other stuff.
31
32
7. Finally, start and build your application scripts. Customize your project however you like.
32
33
34
+
### Recommendation
35
+
Try to add your script and other stuff inside /core folder.
36
+
If you want to run specific script inside the ./core folder, try to set it in package.json script.
37
+
For example, when you try to run ```./core/hello-world.js```, instead of ```cd core && node hello-world```, you can use a command that was set in package.json file ```npm run hello-world```.
38
+
33
39
### 📘 Why is it important to use env file?
34
40
It has variety of usage. Find out [more](https://codeburst.io/process-env-what-it-is-and-why-when-how-to-use-it-effectively-505d0b2831e7).
35
41
But the sole purpose of using .env file for our project is to secure our credentials such as logins, api keys, and other important stuff. It is important not to include your .env file when you in our repository specially when your project is public.
0 commit comments