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
+11-9
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,19 @@ Clean and minimalistic boilerplate to start your NodeJs project.
3
3
4
4
### ⭐ Good for
5
5
- Building a worker scripts.
6
-
-Building scripting and automation tool.
7
-
-Stand-alone, fully customizable project.
8
-
-Creating clean file structured project.
6
+
-Stand-alone scripting and automation tool.
7
+
-Fully customizable project.
8
+
-Clean file structuring.
9
9
- Following standard naming conventions so collaborators/team8s can understand easily your code.
10
+
- Securing your login and api key details by using environment variable -- [dotenv](https://github.com/motdotla/dotenv)
10
11
11
12
### 📘 Prerequisites
12
-
- NodeJs Installed in your local environment.
13
+
- NodeJs, git installed in your local environment.
13
14
- .env file -- Yes you need this!
14
15
15
16
### 📝 Usage
16
17
1. Clone the repo to your local environment.
17
-
-On the command prompt run the following commands:
18
+
-In the command prompt run the following commands:
18
19
run ```git clone https://github.com/yortrosal/nodejs-boilerplate.git ```
19
20
then ```cd nodejs-boilerplate ```
20
21
2. run ```npm install``` to install initial dependencies.
@@ -29,10 +30,7 @@ Clean and minimalistic boilerplate to start your NodeJs project.
29
30
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).
30
31
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. It's easy
31
32
32
-
### Accessing your credentials from .env file.
33
-
34
-
35
-
## 🏗 Project Structure
33
+
### 🏗 Project Structure
36
34
nodejs-boilerplate
37
35
├── core
38
36
│ ├── custom-subfolder-example
@@ -45,10 +43,14 @@ But the sole purpose of using .env file for our project is to secure our credent
45
43
│
46
44
├── .env.example
47
45
├── .env
46
+
├── .plans
48
47
├── .gitignore
49
48
├── package.json
50
49
└── README.md
51
50
51
+
### Initial Dependency
52
+
-[ckey](https://www.npmjs.com/package/ckey) - a dotenv helper for accessing process.env object from sub-directory.
53
+
52
54
### 💬 Tech Support
53
55
- If things went wrong, google it first. People ahead of you have had similar issues in the past and solved it.
54
56
- Last resort. -- Contact Jorge. He'd be happy to help you.
0 commit comments