The developed code should be uploaded to the GitHub (or some similar system, e.g. bitbucket).
It is important, that the code is available "in the cloud" especially for programming of multiple, dislocated CPS&IoT hardware platforms.
For the course, the application of GitHub is suggested.
1. Go to: https://github.com/join
2. Enter data (replace kibernetika100 etc. with your data), at the end click Select the plan:
3. Confirm free account; the code is public:
4. Enter Survey or skip this step:
5. If you click on the above button it would direct you to e-mail confirmation, you should check your email:
6. You should check you e-mail address: e.g. kibernetika100@gmail.com :
7. Confirm with click in the gmail (click on Verify email address):
8. Create a new repository by entering the repository name cps-iot-sibsust-2019 and Description (if the dialog is not already proposed, you can use »Start new project« or click »+« in upper right corner). At the end click "Create repository":
9. View of the repository (it's empty):
10. In Cloud9 we should be in directory with examples (cps-iot-2019). This is our default directory. In Bash tab, you can use the
$ ls
command to list the content of the directory; in this directory there are two files, example01.js and example02.js in our case. It is important, that we are in the proper directory, where our examples are saved. The files are also listed in the left part of the user interface:
11. We should configure git in bash tab of cloud9 (change kibernetika100 , gmail.com and "John Doe" appropriately):
sudo git config --global user.email "kibernetika100@gmail.com"
sudo git config --global user.name "kibernetika100"
12. We should init the folder as git (in cloud9 bash):
sudo git init
13. We should create new readme file (README.md) (README in Capital Letters) in the same folder (using cloud9). This is the file where the description of our repository should be (short description text).
a) We can do it by dialog File/New:
14. Write the description in the file (Cyber-physical Systems & Internet of Things at Siberian State University of Science and Technology 2019):
15. Save As file "README.md" (with capital README):
16. The file is saved, which can be checked in the left part of the user interface, we can see, that in the tree structure the README.md file is present:
17. We add all the files in local directory on our PC cps-iot-2019 to git:
$ sudo git add *
18. Commit the changes (use -m ~message)
$ sudo git commit -m 'First examples'
19. In the next line change kibernetika100 to your name ->
$ sudo git remote add origin https://github.com/kibernetika100/cps-iot-sibsust-2019
20. Push the changes to the web:
$ sudo git push -u origin master
UN: kibernetika100 (write your GitHub Username)
PWD: 12345678 (write your GitHub Password)
21. Above commands (with add and commit) are shown in the bash of cloud9:
22. See the results on the github web repository (again change yourGitHubName to your GitHub name):
"https://github.com/yourGitHubName/cps-iot-sibsust-2019"
23. Please send the link of your github to email: andrej.skraba@gmail.com
For further uploads, we should be in the local PC's directory cps-iot-2019 in cloud9 bash and execute the following commands:
a) Check if all files are in the local PC's directory cps-iot-2019 with ls command:
$ ls
b) Add files:
$ sudo git add *
c) Commit the files:
$ sudo git commit -m 'Description of commit, e.g. examples from Wednesday 27.11.2019'
e) Push the files to the GitHub:
$ sudo git push -u origin master
UN: kibernetika100 (write your GitHub Username)
PWD: 12345678 (write your GitHub Password)
f) Check if the files are uploaded to the GitHub by looking to the page: https://github.com/yourGitHubName/cps-iot-sibsust-2019
If everything is all right, the files should be seen in folder as in the next figure (also shown above, instead of kibernetika100 write your GitHub name):