Skip to content

zendrael/pascal_htmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pascal and HTMX Template/Boilerplate

This project aims for HTMX frontend with (fast)CGI backend written in Object Pascal using the FreePascal compiler and libs.

HTMX official website and docs

FreePascal CGI docs

YOU MUST HAVE at least FreePascal compiler installed on your environment (and available in your path) and Python 3 (to use as local web server) in order to make this CGI + HTMX basic template/boilerplate to work.

Step 1: Clone this repo

Step 2: Open the clonned folder into VSCode

Step 3: Open terminal inside VSCode

Step 4: Run the example

  • open the terminal inside VSCode
  • on Windows compile/run with ./scripts/buildDev.ps1
  • on Linux or macOS compile/run with ./scripts/buildDev.sh
  • access project on http://localhost:3000
  • check your browser to see if the project works
  • CTRL+C on VScode terminal to stop the server

What to upload to my own server?

  • access project on dev folder and upload to your server
  • please note that some servers have special paths for the cgi-bin folder

Dependencies

  • In order to start the local webserver called by the dev script, you must have Python3 installed on your machine