-

- -

Monday, October 5, 2020

[How To] Create PHP SLIM SQLITE project on Glitch.com

 


1. Register your Glitch account.

Go to https://glitch.com/

Click the sign up button.

You are allowed to register using your Google account.





2. Create a new project.

Select the option to import from GitHub.

Import from: https://github.com/infotechrazzi/phpslimsqlite


3. Add Glitch config file

Go to root folder.

Create glitch.json :

{

"install": "composer install",

"start": "composer start",

"watch": {

"ignore": [

"logs"

]

}

}


Create composer.json:

{

"scripts": {

"start": "php -S 0.0.0.0:8080 -t public index.php"

}

}


4. Run

You should get the following default output:

{"action":"none","actionstatus":"done","result":"HELLO"}


Done.