algolia / algolia.github.io

Algolia's community projects
https://community.algolia.com
12 stars 8 forks source link
algolia community github instantsearch open-source

Algolia Community website

This is the source code of https://community.algolia.com/. The deployment to this live website is automated when changes are pushed to the source branch.

Local setup

Requirements

To run this project, you will need:

Pro tip: Remove any brew installed/globall system installed Node.js and Yarn, just use nvm and Alternatives installation, they works perfectly.

Then:

nvm install
nvm use

Dev

To develop on this project, do:

yarn
yarn dev

Deploy

The deploy steps are directly handled by Gulp.js in the gulpfile.

yarn build
yarn deploy

Updating the underlying index

The current appId storing the data is latency (accessible for writes by Algolia employees). If you want to update the data, first test it on a new index: modify algolia-projects.json and run:

appId= adminApiKey= yarn update-index

Once you are sure this is the right config, then run the same command using latency credentials.

You may encounter issues while running yarn deploy, you can fix it by following this GH thread