Project space
This is your corner of the server. Everything under
/projects/hurricane/ is yours to build. You are the only other
person working in here, so you will not be stepping on anyone's toes.
Make a new folder inside hurricane/, drop an
index.html in it, and it goes live at
/projects/hurricane/your-folder-name/. No config to edit, no route
to register. Folder name becomes the URL.
Use lowercase and hyphens for folder names:
storm-tracker, not Storm Tracker.
Shared scripts you use across projects go in
/projects/hurricane/assets/js/. Script that only one project needs
goes in that project's own assets/js/ folder.
Link it with an absolute path so it works from any page:
<script src="/projects/hurricane/assets/js/yourfile.js"></script>
Same idea. Shared styles in /projects/hurricane/assets/css/, images
in /projects/hurricane/assets/img/. Project-specific files stay
inside that project's folder.
There is no site-wide stylesheet you have to inherit from. The root site has its own and it is not yours to worry about. Style Hurricane however you want.
You do not upload anything to the Pi. The flow is:
mainIf your page is not showing up, wait a few minutes and hard-refresh before assuming it is broken.
hurricane/. Everything you need is in
here. Files outside this folder run the rest of the platform.
index.html. There are no
directory listings, so a folder without one is just a 404.