Skip to content
forked from fcgl/search

Search Repo for Madrid FCGL project

License

Notifications You must be signed in to change notification settings

aggKartik/search

 
 

Repository files navigation

Search Microservices

Note:

  • You will only need docker installed on your computer to run this app

Git Steps

  1. Fork Branch
  2. Open terminal and clone forked branch: git clone https://github.com/<YOUR USERNAME>/search.git
  3. Go inside search directory: cd search
  4. Add upstream repo: git remote add upstream https://github.com/fcgl/search.git
  5. Confirm that you have an origin and upstream repos: git remote -v

Build & Run App

This build should work for both macOS and Linux

  1. Download docker for your operating system
  2. From project root run the following command (this will build containers for service and db): docker-compose up --build

Deploy App with Continous Integration

  1. See https://github.com/CircleCI-Public/circleci-demo-aws-ecs-ecr for initial setup with terraform and environment variables such as AWS_ACCESS_KEY.
  2. Setup CircleCI account and repository with desired branch (master)
  3. Commit a change
  4. CircleCI should build docker image and upload to ECR
  5. And then deploy to a AWS Fargate Container in ECS

Health Endpoint

Confirm everything was ran correctly by going to the following endpoint:

Elastic Search

Elastic Search info endpoint: http://localhost:9200 Elastic Search health endpoint: http://localhost:9200/_cat/health Kibana: http://localhost:5601

Note: Might have to increase the memory in your Docker preferences in order to get Elastic Search, and as a result the app, to work. Works properly on 4.5GB of memory but could work on lower.

Reference: http://codingfundas.com/setting-up-elasticsearch-6-8-with-kibana-and-x-pack-security-enabled/index.html

Create Index Api: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html * Can do it through typical http request (curl, postman) * Or, http://localhost:5601/app/kibana#/dev_tools/console

Populate Data

  1. To populate data into the database and elasticsearch make an api request to the following endpoint:
    • http://localhost:8084/dev/populate

About

Search Repo for Madrid FCGL project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 93.8%
  • Shell 3.9%
  • Dockerfile 2.3%