gcollazo / ember-cli-addon-search

This project is no longer maintained please visit Ember Observer
https://emberobserver.com
68 stars 36 forks source link

Make site fastbootable #96

Closed kiwi-josh closed 4 years ago

kiwi-josh commented 7 years ago

This pull request makes the site fastbootable, enabling the discussion about possible hosting options to take place (https://github.com/gcollazo/ember-cli-addon-search/issues/77).

To run locally: npm start, this command runs both versions of the site (on localhost:4200 and localhost:3000 concurrently).

Improvements: Currently the entire package response is inserted into the shoebox, which bloats the index.html file. A potential solution would be to add a new server endpoint which only returns the current page's packages. This endpoint would be called in fastboot mode to hydrate the immediate page, before requesting the entire package list once booted in the browser.

@gcollazo @stefanpenner thoughts?

gcollazo commented 7 years ago

We used to have pages/page-N.json on the "server" but stopped using it and removed the code. I could bring that back if it helps with this.