Giter VIP home page Giter VIP logo

posthog.com's Introduction

PostHog.com - Docs, Website, and Handbook

This is the repository for the PostHog website, which includes our Docs and Handbook.

Please feel free to suggest any changes. See our contributing guide for more information.

Quick Start

  1. Pre-Installation

    Install Node and Yarn.

    npm install --global yarn
  2. Start Developing

    Clone the repo then navigate into your new site’s directory, install the site dependencies, and start it up.

    cd posthog.com/
    yarn
    yarn start

    Tip: Seeing a discrepancy between local development and staging/production? Preview the production build locally by running gatsby build && gatsby serve

  3. Open the Source Code and Start Editing!

    Your site is now running at http://localhost:8001!

    Note: You'll also see a second link: http://localhost:8001/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

If you are using Apple M1 (read this for more):

rm -rf ./node_modules
brew install vips
yarn install

It is also possible to use docker:

docker run -it --rm \
    -w /app -v "$PWD":/app \
    -p 8000-8001:8000-8001 \
    -e INTERNAL_STATUS_PORT=8001 \
    node:14-slim \
    sh -c 'yarn && yarn start'

Working on /docs/api?

  1. Create a personal API key in PostHog
  2. export POSTHOG_APP_API_KEY=key
  3. yarn start

Questions?

Join our Slack community.

posthog.com's People

Contributors

andyvan-ph avatar athreyaanand avatar charlescook-ph avatar corywatilo avatar edscode avatar eltjehelene avatar fuziontech avatar guidoiaquinti avatar imgbot[bot] avatar jamesefhawkins avatar joethreepwood avatar leggetter avatar lottiecoxon avatar macobo avatar marcushyett-ph avatar mariusandra avatar neilkakkar avatar paolodamico avatar pauldambra avatar pjhul avatar postgrace avatar samwinslow avatar seanpackham avatar shehuphd avatar simfish85 avatar smallbrownbike avatar tiina303 avatar timgl avatar twixes avatar yakkomajuri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.