Giter Site home page Giter Site logo

stuffmanagment's Introduction

department-app

A project for departments and employees management

Built With

Get project

  • Clone this project, git clone https://github.com/MikalaiKazak/department-app.git

Run through tomcat

  1. Install Tomcat --- sudo apt-get install tomcat9
  2. Modify tomcat-users.xml file accordingly
 <role rolename="manager-script"/>  
 <role rolename="manager-gui"/>  
 <role rolename="manager-jmx"/>  
 <role rolename="manager-status"/>  
 <user username="tomcat" password="tomcat" roles="manager-gui,manager-jmx,manager-script,manager-status"/>  
  1. Start the Tomcat server:sudo service tomcat run

Deploy on tomcat

  1. Build the war file with maven, mvn clean install
  2. Copy war-files which you can find in /rest/target/rest.war and /webapp/target/webapp.war to your tomcat server webapps folder.
  3. Restart the Tomcat server: sudo service tomcat restart
  4. And then you can see result in browser: http://localhost:8080/webapp/ For REST service: http://localhost:8080/rest/department/ or http://localhost:8080/rest/employee

Run through docker

  1. Install docker --- sudo apt install docker-ce
  2. Install docker-compose --- sudo apt install docker-compose
  3. sudo chmod +x build.sh
  4. ./build.sh
  5. And then you can see result in browser: http://localhost:8082/webapp/ For Rest service: http://localhost:8081/rest/department or http://localhost:8081/rest/employee

Open Zipkin

You can open Zipkin in the browser: http://localhost:9411

Open Kibana

You can open Kibana in the browser: http://localhost:5601

Open Logstash

You can open Logstash in the browser: http://localhost:9600

Open ElasticSearch

You can open ElasticSearch in the browser: http://localhost:9200

Explore Rest APIs

curl -X GET -v http://localhost:8080/rest/department/ --- Return all departments

curl -X GET -v http://localhost:8080/rest/department/0

curl -X DELETE -v http://localhost:8080/rest/department/0

curl -X GET -v http://localhost:8080/employee/ --- Return all employees

curl -X GET -v http://localhost:8080/rest/employee/0

URL Description
GET http://localhost:8080/rest/department/ Return all departments
GET http://localhost:8080/rest/department/{id} Return department by identifier
DELETE http://localhost:8080/rest/department/{id} Delete department by identifier
POST http://localhost:8080/rest/department/ Create new department (The values are sent in the request body)
PUT http://localhost:8080/rest/department/ Update department (The values are sent in the request body)
GET http://localhost:8080/rest/employee/ Return all employees
GET http://localhost:8080/rest/employee/{id} Return employee by identifier
GET http://localhost:8080/rest/employee/?date={date} Return employees by date of birthday
GET http://localhost:8080/rest/employee/?dateFrom={dateFrom}&dateTo={dateTo} Return employees with day of birthday in interval
DELETE http://localhost:8080/rest/employee/{id} Delete employee by edintifier
POST http://localhost:8080/rest/employee/ Add new employee (The values are sent in the request body)
PUT http://localhost:8080/rest/employee/ Update employee (The values are sent in the request body)

stuffmanagment's People

Contributors

dependabot[bot] avatar mikalaikazak avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nikolay6456

stuffmanagment's Issues

split dao

split dao module to dao and dao-jdbc

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.