Code Monkey home page Code Monkey logo

timeline's Introduction

Timeline

This app gets entries from a Notion database, and displays them as a timeline.

Getting Started

Prerequisites

  • GitHub account
  • Notion account

Steps

  1. Create a Notion Database by duplicating Timeline Template
  2. Create an integration with Notion by following instructions in Notion API Docs.
  3. Get your Notion Key and Database ID.
  4. Use .env.example to create .env.local.
  5. Install dependencies:
    yarn install
  6. Run the development server:
    yarn dev
  7. Open http://localhost:3000 with your browser to see the result.

Next.js

This is a Next.js project bootstrapped with create-next-app.

To learn more about Next.js, take a look at the following resources:

timeline's People

Contributors

sitek94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

timeline's Issues

Semantic versioning

It might be a good idea to introduce semantic versioning:

  • Major - breaking changes, e.g. Notion template has been updated in a way that the app will be broken,
  • Minor - features,
  • Patch - chores, fixes, refactors, etc.

Lighthouse: Avoid an excessive DOM size

Consider using a "windowing" library like react-window to minimize the number of DOM nodes created if you are rendering many repeated elements on the page. Learn more. Also, minimize unnecessary re-renders using shouldComponentUpdate, PureComponent, or React.memo and skip effects only until certain dependencies have changed if you are using the Effect hook to improve runtime performance.

Add filters

It'd be nice to have a possibility to filter the entries by tags/categories

Todos

  • Create draft design - where should the filters be located?
  • Create filtering mechanism - start small - single select only, multi select later on

Add pagination/infinite query

It's not a big deal at the moment, but the more entries, the more time it'll take to load them, so it should be addressed some time in the future.

  • implement the logic / fetching mechanism
  • style load more button
  • create skeleton loader
  • add "no more data" message

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.