There are two pieces to og-image
that are worth noting before you begin development.
- The backend image generator located in /src/card.ts
- The frontend inputs located in /src/browser.ts
The Now 2.0 platform handles routing in an elegate way for us so deployment is easy.
However, local development requires a few steps.
- Run
npm run watch
to get TS to JS compilation file watch running (compiles on save) - Run the backend with
npm start
(you can try it by visiting http://localhost:13463/Nice.png) - Run the frontend with
npx http-server .
and visit http://localhost:8080/public/index.html - If necessary, edit the
exePath
in options.ts to point to your local Chrome executable
Now you're ready to start local development!