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
+27-4Lines changed: 27 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,38 @@ All the dependencies used in this project will be listed in the `package.json` f
12
12
13
13
## Installation
14
14
15
-
To start working on this project, follow the steps given above until you complete Step 4, then make a MongoDB Atlas database, get the connection URI, and save it as `DB_URL` in your `.env` file. Also, make sure to use
15
+
To start working on this project first you need to create `.env` file. This .env file will contain:
16
+
17
+
`PORT`
18
+
You can set it on any port number you want. `eg: 4000`
19
+
20
+
`TOKEN_SECRET` which you will get by running following line in terminal
to generate a token secret that you will use for JWT authentication, save it as `TOKEN_SECRET` in your `.env` file.
24
+
`ENVIRONMENT`
25
+
Set this on 'local'
26
+
27
+
`DB_URL`
28
+
For this parameter you will need to open your account on MongoDB Atlas, don't forget to note down you account password, then create new cluster and through that you will get your connection string which will be your DB_URL in .env, make sure instead of "password" in connection string, you enter your own account password.
29
+
30
+
`EMAIL_HOST`,
31
+
`EMAIL_PORT`,
32
+
`EMAIL_USER`,
33
+
`EMAIL_PASS`
20
34
21
-
Once you are done with this, install the packages through `npm i` and run the server with `npm run serverstart` or `npm run serverstartWin` depending on your operating system.
35
+
For these above parameters, first you need to open an account on any SMTP server, we use mailtrap, then start testing where you will see show credentials in which you will get all the values we need which are host, port, username and password.
36
+
37
+
You don't need to assign values to these parameters in double or single quotes, just write directly, .env automatically converts it into quoted string.
38
+
39
+
Once you are done with this, install the packages through `npm ci` which stands for clean install.
40
+
Also, you need to run 'setup.js' file. You can do that by running following command in your terminal
41
+
```
42
+
node setup.js
43
+
```
44
+
And finally, run the server with `npm run serverstart` or `npm run serverstartWin` depending on your operating system.
22
45
23
-
## Contributing
46
+
## How to Contribute
24
47
25
48
1. Choose an issue, bug, exploit, or feature to work on: Start by identifying an issue or feature in the repository that you would like to work on. If you can't find an existing issue or feature, you can create a new one.
0 commit comments