What You Need
To run THT, you will need these requirements.
- PHP 7.1+
- MacOS or Linux. (Windows coming soon)
PHP is usually pre-installed on most platforms, so you’re probably okay.
You can run
php -v to double-check your PHP version.
If you need to install or update PHP, try these guides:
Step 1: Run the Install Command
Open up your Terminal app or command line shell.
Run this command to install THT in your local user directory.
curl -s -o tht.sh https://tht-lang.org/install && source tht.sh
Step 2: Make Sure It Worked
The installer automatically checks itself, but let’s double-check just in case.
tht command without arguments.
If everything worked, you should see the help page, like this:
+-----------+ | THT | +-----------+
Version: v0.6.0 - Beta
Usage: tht [command]
new create an app in the current dir server start the local test server
Post your error messages and platform info at the Issue Tracker and we’ll try to help.
(We’ll add more tips here as we get more feedback.)
You are now ready to set up the starter app.