Skip to content

vinisha99/EventAnalytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation Steps:

Prerequisites:

  • JDK 1.8 or later
  • Java 11
  • Maven 3.2+ [brew install maven] (Mac)
  • MySQL database [brew install mysql] (Mac)
  1. Launch Terminal
  2. Clone Repository from GitHub

git clone https://github.com/vinisha99/EventAnalytics.git

  1. Go inside the Project folder and copy contents of src/main/resources/schema-mysql.sql file.

  2. Connect to mysql cli on the terminal using command:

mysql.server start
mysql -u root -p (Enter your default password of root user)

  1. Paste contents from src/main/resources/schema-mysql.sql file and hit enter.

  2. Exit mysql cli

  3. Make sure you are in the EventAnalytics folder.

  4. Launch application using command:

./mvnw spring-boot:run

APIs should now be working !!!

Sample API URLs

POST : http://localhost:8080/analytics?user=kv90&event=click&timestamp=1613685486860

GET : http://localhost:8080/analytics?timestamp=1613685486860

About

API Service to provide statistics for user events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages