Git Product home page Git Product logo

notion-study-log's Introduction

notion-sdk-typescript-starter

This is a template repository for getting started with the Notion SDK and TypeScript.

To use this template, click the big green "Use this template" button in the upper-right corner. After some questions, GitHub will create a new clone under your account, and then you can get started customizing.

Features

  • TypeScript for type checking.
  • Prettier for code formatting.
  • A minimal GitHub Actions workflow that typechecks your code.
  • Dotenv for configuring your Notion API token.
  • Dependabot for ensuring your (and this template's!) dependencies are up to date.
  • Our lovely Notion SDK!

What to do after duplicating

  1. Make sure you've created a Notion integration and have a secret Notion token.
  2. Add your Notion token to a .env file at the root of this repository: echo "NOTION_TOKEN=[your token here]" > .env.
  3. Run npm install.
  4. Edit the database_id in index.ts from FIXME to be any database currently shared with your integration.
  5. Run npm start to run the script.

Now you can head over to our developer documentation for more information on using the Notion API!

NPM Scripts

This template has a few built-in NPM scripts:

Script Action
npm start Run index.ts.
npm run typecheck Type check using the TypeScript compiler.
npm run format Format using Prettier (also recommended: the Prettier VS Code extension if you're using VS code.)
npm run build Build JavaScript into the dist/ directory. You normally shouldn't need this if you're using npm start.

notion-study-log's People

Contributors

zamancer avatar

Watchers

 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.