mirror of
https://github.com/FlipsideCrypto/og-image.git
synced 2026-02-06 10:46:43 +00:00
* Move to zeit org * Remove author, use yarn * Add .yarnrc so dependencies lock * Save exact dependencies
1.1 KiB
1.1 KiB
Contributing
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.
- Clone this repo
- Run
npm installto install all dependencies - Run
npm run watchto 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
exePathin options.ts to point to your local Chrome executable
Now you're ready to start local development!