Skip to content

Commit f03554c

Browse files
committed
Merge branch 'dev' of https://github.com/oslabs-beta/OverVue into dev
2 parents cc2d67b + e1dceb2 commit f03554c

File tree

11 files changed

+27205
-26
lines changed

11 files changed

+27205
-26
lines changed

.gitignore

Lines changed: 6 additions & 7 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
#
@@ -17,7 +16,10 @@ npm-debug.log*
1716
yarn-debug.log*
1817
yarn-error.log*
1918
/coverage
20-
package-lock.json
19+
<<<<<<< HEAD
20+
# package-lock.json
21+
=======
22+
>>>>>>> dev
2123
vetur.config.js
2224

2325
# Editor directories and files
@@ -37,7 +39,4 @@ build/
3739
dist/
3840
node_modules/
3941
aws-exports.js
40-
awsconfiguration.json
41-
42-
#secret Api keys, Webhook URLs etc
43-
slackApiStuff.js
42+
awsconfiguration.json

README.md

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
* [Tutorial](#how-to-use)
2121
+ [New Features Tutorial 2.0](#overvue-v20-how-to)
2222
+ [New Features Tutorial 3.0](#overvue-v30-how-to)
23-
* [How to Run](#running-a-local-version)
23+
* [Installation](#installation)
24+
+ [General Installation](#installation)
25+
+ [For WSL](#wsl-installation)
26+
+ [For Slack OAuth](#slack-oauth)
2427
* [Contributing](#contributing)
2528
* [Authors](#authors)
2629

@@ -157,7 +160,8 @@ package.json
157160

158161
[↥Back to top](#table-of-contents)
159162

160-
### Running a local version
163+
### Installation
164+
161165
This app was developed using the Quasar framework, so first you will need to install the Quasar cli
162166
```
163167
npm i -g @quasar/cli
@@ -166,18 +170,66 @@ Install dependencies
166170
```
167171
npm i
168172
```
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+
```
169177
To run electron app in dev mode
170178
```
171179
quasar dev -m electron
172180
```
173-
**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
174-
since it is based off of just a CLI.
175-
I recommend X410 (https://www.microsoft.com/en-us/p/x410/9nlp712zmn9q), althought it does cost $10, 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.**
176-
177181
To build a new .dmg / windows .exe
178182
```
179183
quasar build -m electron
180184
```
185+
### WSL Installation
186+
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 :
194+
```
195+
export DISPLAY=:0
196+
```
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+
```
181233

182234
[↥Back to top](#table-of-contents)
183235

0 commit comments

Comments
 (0)