-
-
Notifications
You must be signed in to change notification settings - Fork 3
Creating your first program
Maingron edited this page Dec 5, 2019
·
4 revisions
To get started making a new program, you need to pull the MainOS repository and you probably need a webserver. I recommend Prepros for this. Although MainOS doesn't require you to run PHP or anything like it, because of security policies in browsers, MainOS cannot run without a webserver.
So after you are now successfully hosting your MainOS version locally, you need to go to the actual MainOS files on your harddrive and navigate to Program Files/
and create a folder for your program. In future, you'll be able to just copy the template.
In your program folder, you need the following files:
- exec.html
- exec.css
- exec.js
Exec.html: You need to build a normal HTML structure and import the following files like that:
<head>
<link rel="stylesheet" href="../../helper.css>
<script src="../../helper.js></script>
</head>
...