How to start dgraph with some data in it?

curl -X POST localhost:8080/alter -d '{"drop_op": "DATA"}'

EDIT:

What hosting platform are you deploying to? With render.com you just add a custom CMD argument in the deployment settings: