# search-ui

> Search UI for TST

Latest version **0.1.2** (published 2015-10-28) · 0 weekly downloads

## Install

```sh
npm install search-ui
pnpm add search-ui
yarn add search-ui
bun add search-ui
```

## Health

**Score 0/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-10-28 |
| First published | 2015-10-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 20 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | michael.feuvrel |

## Links

- npm: https://www.npmjs.com/package/search-ui
- Repository: https://github.com/Travel-Syndication-Technology/tsttravel
- Homepage: https://github.com/Travel-Syndication-Technology/tsttravel#readme
- Issues: https://github.com/Travel-Syndication-Technology/tsttravel/issues
- npm.io page: https://npm.io/package/search-ui

## Dependencies (20)

- [icons](https://npm.io/package/icons.md) ^1.5.3
- [jquery](https://npm.io/package/jquery.md) ^2.1.4
- [moment](https://npm.io/package/moment.md) ^2.10.6
- [pikaday](https://npm.io/package/pikaday.md) ^1.3.2
- [backbone](https://npm.io/package/backbone.md) ^1.2.3
- [bootstrap](https://npm.io/package/bootstrap.md) ^3.3.4
- [modernizr](https://npm.io/package/modernizr.md) ^3.0.0
- [ui-common](https://npm.io/package/ui-common.md) ^0.1.1
- [handlebars](https://npm.io/package/handlebars.md) ^3.0.3
- [underscore](https://npm.io/package/underscore.md) ^1.8.3
- [google-maps](https://npm.io/package/google-maps.md) ^3.1.0
- [less-mixins](https://npm.io/package/less-mixins.md) git+https://github.com/qrpike/bower-less-mixins.git
- [animate-less](https://npm.io/package/animate-less.md) git+https://github.com/euskadi31/animate.less.git
- [font-awesome](https://npm.io/package/font-awesome.md) ~4.2.0
- [ui-styleguide](https://npm.io/package/ui-styleguide.md) ^0.1.1
- [feature-toggle](https://npm.io/package/feature-toggle.md) ^0.2.0
- [ui-licensee-data](https://npm.io/package/ui-licensee-data.md) ^0.1.0
- [markerclustererplus](https://npm.io/package/markerclustererplus.md) git+https://github.com/qrpike/markerclustererplus.git
- [ui-search-framework](https://npm.io/package/ui-search-framework.md) ^0.1.0
- [devbridge-autocomplete](https://npm.io/package/devbridge-autocomplete.md) ^1.2.23

## Recent versions

- 0.1.2 (latest) — 2015-10-28
- 0.1.1 — 2015-10-27

## README

# Search UI

This is a purely Front End project ( only static files ).

The only dependencies you need is NodeJS and Gulp installed.

NodeJS: `https://nodejs.org/en/download/`

Gulp: `npm install -g gulp`

---

### To Get Started:

- Check out the repo locally
- run `npm install` inside the directory. (You only have to do this once)

---

### Running the project:

Inside the directory run:

	gulp

There are several options when using gulp, to list them, run:

	gulp --help


---


#### Running with Remote API:

You can point the API requests at client-test enviroment by using the following flag:

	gulp --remote
	
or shorthand:
	
	gulp -r

---

#### Running with Local API:

By default the project runs pointing at your local API: `https://amatravel.localhost`

You can point the front end to use any API url you like by using the following:

	gulp --api http://amatravel.localhost

Which will point all API requests at the specified url.

---

### Running with certain Feature Toggles enabled:

By default the project runs using the feature settings specified in `config/features.js`

If you would like to override one of the feature toggles at runtime, you can enable features by doing:

	gulp --features sponsoredListings,feature2,feature3

or shorthand:

	gulp -f sponsoredListings,feature2,feature3

**!~! WARNING !~!** Features must be comma seperated, and no spaces between them.

---

#### Generating the Docs:

Gulp can automatically generate JS/HTML doc files from the source code. This is useful for when you want to read through some source code in a annotated and user friendly way.

We currently use docker.js for this, you can learn more here: [docker.js docs](http://jbt.github.io/docker/src/docker.js.html)

To generate and view the docs, run:

	gulp docs

This will generate docs for any .js or .html file in the `app/` directory. After docs are generated it will automatically open a tab with the generated docs. Any subsequent changes to .js or .html files will auto regenerate the associated doc file and refresh the browser, showing the updated doc.


---

#### Disabling the proxy:

The project runs with NodeJS proxying all API requests to the desired api url.

You can disable the proxy and point the front end directly at the api url by running:

	gulp --dontproxy
	
or shorthand:
	
	gulp -d

---

#### Building the project:

To build the project, which puts all built files into `dist/` run the following:

	gulp build

This will:

- minify all javascript files
- optimize all image files
- minify css files
- remove all `console.log` in the code

---

#### Running with locally linked common and styleguide repo's:

By default NPM downloads `common` and `styleguide` as normal npm packages.

If you would like to work on something in common or styleguide and see the results instantly inside of search-ui you need to locally link the NPM projects.

To do so, download both common and styleguide repo's locally. In each directory run:
	
	npm link

This will give you an output similar to:

	/usr/local/lib/node_modules/styleguide -> /Users/qrpike/tst/styleguide

We only need the 2nd part. Go into the search-ui directory and run the following:

	npm link /Users/qrpike/tst/styleguide

Now NPM symlinks the npm package to your local copy so all changes are instantly seen inside of search-ui project. You need to do this for both `common` and `styleguide` repos.

---

##### More details and documents to come...

---
_Source: https://npm.io/package/search-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
