This example showcases the usage of Wildcard and Photon with database types used directly in the frontend code!
Photon automatically generates types for the data model Post
which we use on the frontend:
We share the types with the frontend by using Wildcard's TypeScript support.
To run the example:
- Install dependencies.
yarn
- Build the frontend and start the server.
yarn start
- Go to http://localhost:3000.