Before you sell mugs, prove the store’s API process is running.
What you will learn
- Start the built-in PHP server
- Hit the health endpoint and open the welcome page
Before you start
Start the server
php pionia serveLeave that terminal open. In another terminal:
curl -s http://127.0.0.1:8000/api/v1/pingYou should see returnCode: 0 and a small pong payload. Open http://127.0.0.1:8000/ in a browser — the welcome page should say Pionia Shop if you set APP_NAME.
Common mistakes
- Port already in use — change
PORTin.envor stop the other process - Curling the wrong host — use
127.0.0.1:8000unless you changedPORT