Giter Club home page Giter Club logo

event-sample-app's Introduction

Events Application

This is a CRUD application allows the user to manage events in cities (create, view, update, delete, search)
It is a developed using Spring Boot as backend and uses Elasticsearch as NoSQL document DB. The front web part uses jQuery, JS, Bootstrap, HTML, CSS.

How to run ?

Elasticsearch

  1. Download Elasticsearch 5.6.8
    https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.8.zip
  2. Unzip and run bin/elasticsearch executable
  3. Wait for Elasticsearch to start

Spring Boot Application

  1. Verify you have JVM 1.8
  2. Run the command
    mvnw spring-boot:run
  3. This will compile and run the application ( after downloading the right version of Maven)
  4. Once started you can go open link :
    http://localhost:8090/index.html
  5. You will be on the home page of the application, start by creating a new event

Customize Configuration

In the Spring Boot application.yml you can set a different application server port.
You can also change the host/port for Elasticsearch.

P.S

Sometimes after creating/updating/deleting an event we don't get the changes after redirection to the home page.
If changes aren't impacted on the home page a simple refresh on the web browser will do the trick.

event-sample-app's People

Contributors

obelhadi avatar

event-sample-app's Issues

Elasticsearch IT Test framework is not working

Using the dependency to create IT tests for ES:

<dependency>
            <groupId>org.elasticsearch.test</groupId>  
            <artifactId>framework</artifactId>  
            <version>5.6.8</version>  
            <scope>test</scope>  
</dependency>

When used to created an IT test extending ESIntegTestCase is causing

java.lang.RuntimeException: found jar hell in test classpath  

	at org.elasticsearch.bootstrap.BootstrapForTesting.<clinit>(BootstrapForTesting.java:91)
	at org.elasticsearch.test.ESTestCase.<clinit>(ESTestCase.java:175)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$2.run(RandomizedRunner.java:592)
Caused by: java.lang.IllegalStateException: jar hell!  

So I was unable to code IT tests for EsCrudRepositories

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.