Skip to content

All about books, hilarious tshirts, and blog posts. Send us a PR!

License

Notifications You must be signed in to change notification settings

TemitopeAsama/apisyouwonthate.com

 
 

Repository files navigation

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

About

All about books, hilarious tshirts, and blog posts. Send us a PR!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • CSS 6.7%