Skip to content

zendrael/create_pas2js_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pas2JS Template/Boilerplate

Step 1: Download pas2js

Step 2: Prepare your environment

On Windows

  • Unpack zip on Downloads folder and keep the folder name
  • At the time of this version, the folder should be named pas2js-windows-23.0.1

On Linux (or Windows WSL or ChromeOS Linux container)

  • Unpack zip on Downloads folder and keep the folder name
  • At the time of this version, the folder should be named pas2js-linux-x86_64-3.0.1

On macOS

  • Unpack zip on Downloads folder and keep the folder name
  • At the time of this version, the folder should be named pas2js-macos-3.0.1

Step 3: Clone this repo

  • Clone this repo or just download it, you can change the folder name after you downloaded

Step 4: Open project folder on VScode

  • open project folder with VSCode
  • open the terminal inside VSCode
  • on Windows compile dev with scripts\buildDev.ps1 (you must have rights to execute PoweShell scripts)
  • on Linux or macOS compile dev with ./scripts/buildDev.sh
  • access dev project in your browser on address http://localhost:8080
  • check your browser console to see if the project works
  • CTRL+C on VScode terminal to stop the server

Building a release

  • open terminal inside VScode
  • on Windows compile with .\scripts\buildDist.ps1
  • on Linux or macOS compile with ./scripts/buildDist.sh
  • access project on dist folder and upload to your server

Dependencies

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

About

Pas2JS project template for creating frontend, backend and games with Free Pascal transpiler to JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published