Once installed, you can now create projects within FullStacked.
Follow along to create a Hello World
sample project.
Start by creating a new project by clicking on the plus +
tile.
Make sure to add a title to your project and if you'd like, select a location where to store your project directory.
This is file FullStacked will build and bundle expecting to be run in the web view later on. Let's start by creating a little something.
// index.js
const container = document.createElement("div");
document.body.append(container);
container.innerText = await rpc().greeting("World");
We're almost ready to launch your project.
Like any web-like project, everything starts with an index.html
.
Let's create it and then add your JS script.
<!-- index.html -->
<script type="module" src="index.js"></script>
Now we're ready. Run your project.
To spice things up, let's add a bit of styling.
Create a css
file and add any kind of style attributes you'd like.
/* index.css */
html, body {
font-family: sans-serif;
background-color: midnightblue;
color: whitesmoke;
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content:center;
}
Then make sure to add it to your index.html
.
<!-- index.html -->
<link rel="stylesheet" href="index.css" />
<script type="module" src="index.js"></script>
Rerun your project and voilà!