Skip to content

Commit a0825ec

Browse files
committed
updated readme to include oauth .env instructions, additional instructions fordevelopers on WSL, and terminal command to open vue dev tools
1 parent ba102ed commit a0825ec

File tree

3 files changed

+58806
-13
lines changed

3 files changed

+58806
-13
lines changed

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#secret Api keys, Webhook URLs etc
2-
slackApiStuff.js
1+
#
32
.env
43
.env.development
54
#
@@ -36,7 +35,4 @@ build/
3635
dist/
3736
node_modules/
3837
aws-exports.js
39-
awsconfiguration.json
40-
41-
#secret Api keys, Webhook URLs etc
42-
slackApiStuff.js
38+
awsconfiguration.json

README.md

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
+ [New Features Tutorial 2.0](#overvue-v20-how-to)
2222
+ [New Features Tutorial 3.0](#overvue-v30-how-to)
2323
* [Installation](#installation)
24+
+ [General Installation](#installation)
25+
+ [For WSL](#wsl-installation)
26+
+ [For Slack OAuth](#slack-oauth)
2427
* [Contributing](#contributing)
2528
* [Authors](#authors)
2629

@@ -167,22 +170,66 @@ Install dependencies
167170
```
168171
npm i
169172
```
173+
To open Vuejs devtools (devtools should be open before devmode, otherwise, you can justforce reload electron app in dev mode after opening dev tools)
174+
```
175+
./node_modules/.bin/vue-devtools
176+
```
170177
To run electron app in dev mode
171178
```
172179
quasar dev -m electron
173180
```
174-
To open Vuejs devtools
181+
To build a new .dmg / windows .exe
175182
```
176-
183+
quasar build -m electron
177184
```
178-
**For WSL users, the ability to load the application requires a tool/application to run a linux display as WSL does not have any display drivers
179-
since it is based off of just a CLI.
180-
I recommend X410 (https://www.microsoft.com/en-us/p/x410/9nlp712zmn9q), althought it does cost $15, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but require more set up.**
185+
### WSL Installation
181186

182-
To build a new .dmg / windows .exe
187+
**The ability to load the application and/or devtools requires a tool/application to run a linux display as WSL does not have any display drivers since it is based off of just a CLI.
188+
I recommend X410 (https://x410.dev/), althought it does cost $15, for ease of use. There are free options such as VcXsrv(https://sourceforge.net/projects/vcxsrv/) that you can get, but requires more set up.**
189+
190+
If you choose to use x410, you will need to set the environment DISPLAY variable on each console:
191+
192+
So, to open either the Vue devtools or OverVue in dev mode, first start your X Server then enter into the terminal:
193+
For WSL 1 :
183194
```
184-
quasar build -m electron
195+
export DISPLAY=:0
185196
```
197+
For WSL 2 :
198+
```
199+
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
200+
export LIBGL_ALWAYS_INDIRECT=1
201+
```
202+
followed by the command for the devtools or devmode. If you want both open, enter commands above followed by starting the devtools:
203+
```
204+
./node_modules/.bin/vue-devtools
205+
```
206+
Then open a new terminal instance, set the DISPLAY value again (re-enter above command for DISPLAY), and start OverVue in dev mode:
207+
```
208+
quasar dev -m electron
209+
```
210+
211+
### Slack OAuth
212+
213+
For the Slack OAuth, you will need to create a Slack app through their website (https://api.slack.com/apps?new_app=1), so that you have your own Client Secret and Client ID. Then create two .env files (one for development and one for production).
214+
215+
1. Create a Slack App from the link above. Copy your Client ID and Client Secret somewhere safe.
216+
2. Create two .env files in the main root of this repository. Name them:
217+
```
218+
.env
219+
.env.development
220+
```
221+
3. Open .env and add these three environment variables. Replace <client secret> and <client id> with the client id and client secret given to you when you created your Slack App.
222+
```
223+
SLACK_CLIENT_SECRET = "<client secret>"
224+
SLACK_CLIENT_ID = "<client id>"
225+
SLACK_REDIRECT_URI = "overvue://slack"
226+
```
227+
4. Next, open .env.development and do the same, just note that the SLACK_REDIRECT_URI will be different here:
228+
```
229+
SLACK_CLIENT_SECRET = "<client secret>"
230+
SLACK_CLIENT_ID = "<client id>"
231+
SLACK_REDIRECT_URI = "overvuedev://test"
232+
```
186233

187234
[↥Back to top](#table-of-contents)
188235

0 commit comments

Comments
 (0)