fastn
To write programs using ftd
language you will have to use fastn
, a command line program, like ls
we mentioned in previous section. fastn
is a “compiler” or “interpreter” of ftd
, it converts your ftd
programs to html
, css
, js
that browsers understand. fastn
is also a “package manager”, when you are writing programs, you often depend on code written by others, shared by them to make life easy by everyone. Code you depend on others is called dependencies or libraries. We call them fastn package
. And fastn
manages these packages. This will all make sense more sense as we progress in the book, what you need to know is that fastn
acts as your package manager as well. And finally fastn
is a “web server”, when you write a web application or a website, you are trying to create something that works in web browsers like Chrome, Firefox, Safari, etc, and these browsers talk to “web servers”.
fastn
is all that for you, and more. So let’s install it now. If you are using OSX
or Linux
, installing it can be as easy as running the following in the terminal:sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/fastn-stack/fastn/main/install.sh)"
Copy the command above by clicking on the copy icon, and paste it in the terminal. It will ask you to enter your super user password so it can do the installtion.
NOTE: A note on caution, when using terminal, it is generally not a good idea to trust random sites and run the commands they ask you to run. We have done this as a convenience, and it is recommended you follow other methods described in our installation manual.
This is how a successful installation looks like:fastn
on Windows very easy, instead we have a guide for Windows users. Please follow it and come back here.fastn
, you should be able to use the fastn
command from your terminal. Open a terminal and type fastn
command, you should see something like this as the output.fastn
installed, let’s install a programming editor.Have a question or need help?
Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.
Join our Discord channel and share your thoughts, suggestion, question etc.
Connect with our community!We welcome you to join our Discord community today.
We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.