Giter Club home page Giter Club logo

openpage's Introduction

Openpage

Public metrics and analytics pages for your website, product and startups.

OpenPage

The site is made with Nuxt, Tailwindcss and uses Vercel serverless functions to fetch data from respective services.

How to get started

  1. You need to host this site on Vercel.
  2. Get the api keys for your services. (Instructions here)
  3. Save the tokens as environment variables in your vercerl account.

How to get twitter credentials

TODO

How to get youtube channel statistics credentials

This requires a Google API Credentials for Youtube and creating a Google service account.

Enabling youtube api for your Google account.

  1. Navigate to Google developer console
  2. Create a new Google project or select an existing one.
  3. Go to Credentials -> Create Credentials -> Service account. Enter all your project details.
  4. Click on Enable APIs and Services and select YouTube Data API V3 and enable it.

Getting credentials from by enabling a service account.

  1. Navigate to Google Service Accounts
  2. Click on Create Key and choose JSON format

How to get Google analytics credentials

TODO

How to get stripe credentials

TODO

How to get gumroad credentials

TODO

How to get gumroad credentials

TODO

Customising the page

You can remove the link to this Github repository and just select the services which you'd like to showcase on the website.

How to host your page?

  1. Commit the changes to your github repository.
  2. Create a vercel account and link your vercel account.
  3. Create a new project in your vercel account and select the repository you created in your github account.
  4. Override Build and Output Settings and set Build Command to yarn generate
  5. Set all the environment variables in your vercel account.

Environment variables

Twitter credentials

  • TWITTER_API_KEY
  • TWITTER_API_SECRET
  • TWITTER_BEARER_TOKEN
  • TWITTER_ACCESS_TOKEN
  • TWITTER_ACCESS_TOKEN_SECRET

Google analytics and Youtube

  • GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY
  • GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL

Gumroad

  • GUMROAD_API_KEY

Stripe

  • STRIPE_SECRET_KEY

Local development setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

For detailed explanation on how things work, check out the documentation.

openpage's People

Contributors

fayazara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.