fastn
on your machine and create a hello world
fastn
program.The name of package manager for fastn
language is
fastn
.
We will begin by installing fastn
on your machine.
Install fastn
.
fastn
.fastn
package and start coding Hello World.fastn
package?fastn
package is a folder that requires atleast two files
.ftd
file but these two files are essential.Create a new folder and rename it as expander, anywhere in your machine. Let's
say in your Desktop
folder.
Open the newly created folder in any text editor. We recommend Sublime Text or VS Code for working with FTD.
Open the folder and add two new files,FASTN.ftd
and index.ftd
to create
the fastn
package.FASTN.ftd
It is a special file which keeps package configuration related data like
fastn
-- import: fastn
-- fastn.package: <project-name>
-- ftd.text: Hello World
Create a local server and run the URL in the web-browser to see the text displayed.
Make sure that the directory points to the expander folder you created.fastn serve
Using just one line code, we displayed the Hello World
s.
You have successfully completed the Part 1.
Continue with the part 2 now.