All Projects → apisyouwonthate → apisyouwonthate.com

apisyouwonthate / apisyouwonthate.com

Licence: MIT license
All about books, hilarious tshirts, and blog posts. Send us a PR!

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

apisyouwonthate.com

APIs You Won't Hate

(the website)

This site is built with Next.js and MDX/Markdown, and Chakra UI. It is hosted on Vercel.

To run the site locally

  1. clone this repo

  2. yarn install to install npm dependencies

  3. To make shopify buy button embeds work, create a file called .env.development in the root of this project directory with the following values set:

    # IDs for our shopify store, to be able to sell books
    NEXT_PUBLIC_SHOPIFY_DOMAIN=
    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
    NEXT_PUBLIC_FATHOM_ID=
    
    
    # mailjet API stuff, for the newsletter subscription form
    MAILJET_PUBLIC_KEY=
    MAILJET_SECRET_KEY=
    MAILJET_NEWSLETTER_LIST_ID=
    
    # API key and base ID for airtable, which we use for our contact form
    AIRTABLE_API_KEY=
    AIRTABLE_BASE_ID=

    (fill in missing values to the right of each = with values from shopify) Values from this file will be injected into the react runtime following these rules whenever you start the project with yarn dev).

  4. yarn dev will run the local dev environment 👍

  5. yarn build will run the build command to build a prod version of the site, which you can then test locally with yarn start

Code of Conduct

Our aim is to build a constructive, inclusive, and positive community. Please give our our Code of Conduct a read through before contributing.

Powered by Vercel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].