@@ -6,36 +6,50 @@ Console Box AWS is an application that allows you to open different `AWS` sessio
6
6
You create a workspace to work with an aws session and inside you have a full browser to navigate. You can create as many workspaces as you want.
7
7
8
8
***
9
+ ## Example
9
10
10
11
![ gif] ( Screenshots/CBAWS-demo.gif )
11
12
12
13
***
13
14
15
+ ## Behavior
14
16
17
+ The operation of the application is very simple, the ViewManager loads the root (ViewA or ViewB) based on the label ` ?view=viewB ` .
18
+
19
+ ViewA contains the workspaces and ViewB contains the browser.
20
+
21
+ ViewB separates the sessions by the label ` &session=${workSpace} ` .
22
+
23
+ When you select a workspace in the ViewA, it creates a new process with the ViewB, separating the session.
24
+ Being a new process, it allows to have the browser open even if the workspace is changed to anther one.
25
+
26
+ ** This application does not save any data of your aws passwords or names. Only save the cache and session like a normal browser do.***
27
+
28
+ ***
15
29
16
30
## Available Scripts
17
31
18
32
* First install all node dependencies with yarn.
19
- *
33
+
34
+
20
35
In the project directory, you can run:
21
36
22
37
### ` yarn dev `
23
38
24
39
Runs the app in the development mode at [ http://localhost:3000 ] .<br >
25
40
Open [ http://localhost:3000 ] ( http://localhost:3000 ) to view it in the browser.
26
41
27
- You have to edit these lines to change between production and development.
28
- Comment the line that you do not use.
42
+ Automatically switches between development and production.
29
43
** For production to work, you have to use the prebuild command**
30
44
31
45
``` javascript
32
- // view.webContents.loadURL(`http://localhost:3000?view=viewB&session=${workSpace}`);
33
- view .webContents .loadURL (` file://${ path .join (remote .app .getAppPath (), ` ./build/index.html?view=viewB&session=${ workSpace} ` )} ` );
46
+ isDev? view .webContents .loadURL (` http://localhost:3000?view=viewB&session=${ workSpace} ` ) : view .webContents .loadURL (` file://${ path .join (remote .app .getAppPath (), ` ./build/index.html?view=viewB&session=${ workSpace} ` )} ` );
34
47
```
35
48
36
49
The page will reload if you make edits.<br >
37
50
You will also see any lint errors in the console.
38
51
52
+
39
53
### ` yarn prebuild-pack `
40
54
41
55
Builds the app for production to the ` build ` folder.<br >
@@ -48,3 +62,4 @@ Your app is ready to be packaged!
48
62
49
63
Package and create the executables for windows and mac in the dist folder.
50
64
65
+ ***
0 commit comments