Skip to content

Commit

Permalink
Update contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Feb 5, 2019
1 parent f63aa97 commit 844c0a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ The Now 2.0 platform handles [routing](https://github.com/styfle/og-image/blob/m
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` and visit http://localhost:13463/Boom.png
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. Edit `index.html` and change the path of the script from `browser.js` to `../dist/browser.js`
5. Edit `browser.ts` and change the URL of `https://og-image.now.sh` to `http://localhost:13463`
4. If necessary, edit the `exePath` in [options.ts](https://github.com/styfle/og-image/blob/master/src/options.ts) to point to your local Chrome executable

Now you're ready to start local development!

0 comments on commit 844c0a0

Please sign in to comment.