Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1019 Bytes

CONTRIBUTING.md

File metadata and controls

17 lines (11 loc) · 1019 Bytes

Contributing

There are two pieces to og-image that are worth noting before you begin development.

  1. The backend image generator located in /src/card.ts
  2. 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.

  1. Run npm run watch to get TS to JS compilation file watch running (compiles on save)
  2. Run the backend with npm start (you can try it by visiting http://localhost:13463/Nice.png)
  3. Run the frontend with npx http-server . and visit http://localhost:8080/public/index.html
  4. If necessary, edit the exePath in options.ts to point to your local Chrome executable

Now you're ready to start local development!