To start developing, you can go to the Editor page directly.
Please, remember that this shell feature is a light shell emulator, and can't run commands such as text editors (vim/emacs/...), or pagers (less/more/...).
However, you can access to a more complete web-shell. To proceed access the terminal into the runner with the 'shell-password' available in your monitoring interface.
SlapOS runner is a web based development tool which uses slapgrid to install and instantiate the software
Now we need to set up an empty git folder in order for you to start your application. We will then link this directory to your public directory so that you can directly display any modification you make. Type the following commands into the terminal
$ cd project $ git init myproject $ cd .. $ ln -s $(pwd)/project/myproject $(pwd)/public/
Now that we have set a minimal environment to develop. we can start adding files and edit them. This is possible from the editor tab
By default the runner display the tree to edit software profiles. In our case where we want to develop an HTML5 application, we need to access another part of the tree, to do so you can click on the switch button in the editor interface
Now we will create our first file in our repository. Open the project folder and right click on your project to add a new file in it. A popup will appear to name the file/ eg: "index.html"
Here we will detail how to use the editor interface.
Once you started creating you application you can access it using the "Public Url" giving the full path of your application. In our case the full is ${public_url}/myproject/index.html
Now that we started to develop our application. We will use git in order to trace, share and save our work. To do so access the terminal and copy the following command for your first commit:
$ cd project/myproject/ $ git config --global user.name "Your Name" $ git config --global user.email "my.email@domain.com" $ git add * $ git status $ git commit -m "Initial commit"
If you are using the web terminal (on the dedicated page), you can also declare the default text editor (nano and vim are currently available) :
$ git config --global core.editor nano
Or :