Beginner's guide to building a full stack JavaScript web app with Elasticsearch
Welcome to season 2 of Mini Beginner's Crash Course to Elasticsearch and Kibana.
In this series, we will be building a full stack app(Node.js & React) that enables users to search for earthquake data stored in Elasticsearch!
Two Ways to Learn
We all have preferred method of learning so choose the format that works for you:
1. Video format(YouTube playlist)
Season 2 video titles start with S2 and has a thumbnail background similar to the following!
2. Blog format (Dev.to)
How to use this repo
This repo contains multiple branches that serve as complementary resource to season 2 YouTube episode/blog.
- main (final product)
- 1-build-a-server
- 2-connect-server-to-Elastic-Cloud-via-basic-authentication
- 3-connect-server-to-Elastic-Cloud-via-apiKey
- 4-retrieve_and_ingest_data
- 5-build_the_client
- 6-manage_elasticsearch_request
Running the App locally
If you wish to download the project, follow these instructions.
Downloading the repo
Go to the page of the branch you wish to download.
Click on the Code
button(blue box) to display the drop down menu.
Click on the Download Zip
option(red box).
Once the code is downloaded, double click on the file to unzip it.
Move the unzipped file to your desired location.
I recommend that you change the name to something shorter as the downloaded project will have the following name:
beginners-guide-to-creating-a-full-stack-JavaScript-app-with-Elasticsearch-name-of-the-branch.zip
Cd into the project directory.
Start the server
Execute these commands in the terminal in the following order.
//in the project directory
npm install
npm start
Start the client
Execute these commands in a new terminal in the following order.
//in the project directory
cd client
npm install
npm start
Don't forget!
This project requires creating an Elastic Cloud deployment and adding the Elastic Cloud access credentials to the config/default.json
file.
The steps on how to accomplish these tasks are outlined in the following blogs:
config/default.json
file with your access credentials before running the project!