Skip to content

destacks/completo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

completo

completo showcase

A minimal, zero-dependency autocomplete implementation for your web projects.

By nature, completo is unstyled (headless), and it's up to you to style it.

This project is still young and not yet ready for prime time.

Installation

Option A: use npm

npm install @destacks/completo

Option B: use degit

Needs npm locally installed.

npx degit destacks/completo

Run Example

To run the example, you need to serve a JSON file as pseudo-API

1. Go to example

  • if installed via npm:
    cd node_modules/@destacks/completo/example/
  • if installed via degit:
    cd example/

2. Install json-server dependency

npm install

3. Run json-server to mock data API

npm run json-server

4. Open index.html

Open the index.html in your example folder in a browser (go in your browser of choice and navigate to index.html in the example folder and open it).

Some people have some HTML serving functionality built-in in their editor or IDE.

For example if you use Visual Studio Code, you could use Live Server to serve the index.html in the example folder.