Skip to content

Commit 85e09bf

Browse files
committed
README.md
1 parent 6cc5b17 commit 85e09bf

File tree

2 files changed

+57
-2
lines changed

2 files changed

+57
-2
lines changed

README.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,55 @@
1-
### c9launcher
1+
# c9launcher
2+
### Launcher for instances of Cloud9 IDE
3+
4+
## Get started
5+
On your server, run these commands:
6+
```
7+
git clone https://github.com/sirhypernova/c9launcher.git
8+
cd c9launcher
9+
cp config-example.json config.json
10+
```
11+
Now, open config.json.
12+
It should look something like this:
13+
```json
14+
{
15+
"name": "c9 Launcher",
16+
"database": "c9launcher.db",
17+
"session": "session.db",
18+
"crypto": "a secret to encrypt workspace passwords",
19+
"sdkpath": "/home/c9/c9sdk/"
20+
}
21+
```
22+
Now it is time to clone the Cloud9 SDK to your server.
23+
You can follow the steps to [set it up here](https://github.com/c9/core/).
24+
25+
Once you have completed these steps, enter the path to the Cloud9 SDK directory in `config.json`
26+
Now you are ready to launch c9launcher!
27+
28+
```
29+
npm start
30+
```
31+
32+
This will initialize your database, and your instance will be ready to use.
33+
34+
The default login credentials are as follow:
35+
```
36+
Username: admin
37+
Password: admin
38+
```
39+
40+
## Change your workspace root directory
41+
Log in to c9launcher, then click on your username in the navigation bar.
42+
Click on Admin.
43+
You will see something that looks like this:
44+
![Admin Panel](https://dogs.are-la.me/e74e41.png)
45+
Change the workspace directory to any directory the server can write to, and press enter to save.
46+
47+
## Create a workspace
48+
49+
On the navigation bar, click `New Workspace`
50+
You should see a screen that looks like this:
51+
![New Workspace](https://dogs.are-la.me/0414dc.png)
52+
53+
Set a name for your workspace, and choose a folder from the dropdown.
54+
Set your username and password you use to authenticate to the workspace.
55+
Once you are done, click submit.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Cloud9 Launcher",
55
"main": "index.js",
66
"scripts": {
7-
"start": "node index.js"
7+
"dev": "node index.js",
8+
"start": "NODE_ENV=production node index.js"
89
},
910
"author": "SirHyperNova",
1011
"license": "ISC",

0 commit comments

Comments
 (0)