itemsapi / curated-list

Build nice curated list by editing yaml file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curated list

Build nice client-side curated list by editing yaml file. See demo for movies - https://imdb.netlify.com/.

Features

  • faceted & full search
  • no db dependencies (search engine written in js)
  • website powered by editing simple yaml file
  • simple template engine (similar to twig)

Getting started

git clone https://github.com/itemsapi/curated-list.git
npm install

Edit config.yaml:

website:
  title: List of movies
  layout: 
    name: table
    columns: 
      - image
      - name
      - tags
search:
  searchableFields: ['name', 'tags', 'genres', 'actors']
  aggregations:
    tags: 
      size: 15
      title: Tags
    genres: 
      size: 10
      title: Genres
    actors: 
      size: 10
      title: Actors
data:
  type: url
  url: https://storage.googleapis.com/imdb-list/imdb.json
npm run build
npm start

Result:

See another examples

Short guide

After running npm run build all html, css and js files are generated in docs folder. You can use docs files for github pages or netlify deployment or maybe even AWS S3.

Generate website with different config:

npm run build --config databases.yaml

Deployment

# install now
npm install now -g
# deploy app with now 
now

Technologies

  • Express (minimalist web framework for Node.js)
  • ItemsJS (full text, faceted search engine in javascript)

Contributions

Any help from talented people with design or programming skills is very welcome.

About

Build nice curated list by editing yaml file

License:Apache License 2.0


Languages

Language:JavaScript 48.3%Language:HTML 35.4%Language:CSS 15.0%Language:Shell 1.3%