Step 2 — Dev server and ping

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 serve

Leave that terminal open. In another terminal:

curl -s http://127.0.0.1:8000/api/v1/ping

You 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 PORT in .env or stop the other process
  • Curling the wrong host — use 127.0.0.1:8000 unless you changed PORT