a search engine using elasticsearch to discover different stained glass windows
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
build
components
pages
static
utils
.codeclimate.yml
.dockerignore
.editorconfig
.env.config
.gitignore
.server.js.swp
.travis.yml
Dockerfile
config.js
config.txt
docker-compose.debug.yml
docker-compose.yml
glassapplayout.png
image1.gif
image2.gif
image3.gif
logo.png
next.config.js
package-lock.json
package.json
readme.md
server.js
starter.js

readme.md

Client side elastic serach engine made with react/next.js

demo

https://elastic-glass-rsfnuhzosl.now.sh

This project takes advantage of many new web technologies such as:

Be sure to make changes to the config.js file to connect this project to your own elastics bucket.

How to edit the config.js file

Do not edit the json files in /components as they will be updated when you start node app The config.js has three main parts

  1. serverSettings The server setting is where you set information like port number

  2. appSettings app settings is where you set the title, font, colours and give the elastic database information. The following is better documented here

    • elasticApp - name of database
    • credentials - username:password if required
    • elasticURI - the url of the server if needed
    • type - the type of database you are using
  3. databaseMap Database map is where you can bind the content of the database to the GUI the only required field is fullname which has to be unique. For example if there is a variable called picture and you want to show it then set

    avatar: 'picture',

Autofill

the project autofills your serach as your filters

autofill

Setup

To set up please make sure you have node higher than version 8 installed and build tools To install the project

npm install

To start development run the following and the project should restart the react app when a change is made to it You will need to reboot manually if config or server side changes are made

npm run dev

you need to build a production copy of the project. This is done to increase performance

npm run build

after you have build the project you can start with the following

npm run start

or use the following command to start with pm2 which will load balance the project

npm run pm2

If you are having issues running on window you might need to run the following command in administrator powershell then reboot. This will fix most node issues on windows but if issues remain try changing node version and installing again.

npm install --global --production windows-build-tools

Mobile Friendly

mobile