Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/astitou77/lastnameproject

JSP - DevOps Practical demos
https://github.com/astitou77/lastnameproject

apache jenkins-pipeline jsp ldap-authentication solr-search ssl tls tomcat

Last synced: about 1 month ago
JSON representation

JSP - DevOps Practical demos

Awesome Lists containing this project

README

        

JSP (Java Servlet Pages) Demo
* HTTP requests: GET (Search) & POST (Save)
* SMTP requests: POST Emails

> sudo apt install git

> cd ~/Desktop

> git clone https://github.com/astitou77/LastNameProject

Install MySQL, add DB with appropriate credentials
> sudo apt install mysql-server

> mysql> mysql -u root -p

> mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'l84w0rk'

> mysql> CREATE DATABASE helloDB;

> mysql> CREATE TABLE employees (first_name VARCHAR(255), last_name VARCHAR(255))

> mysql> EXIT

Download Eclipe IDE for 'Web'
https://www.eclipse.org/downloads/packages/

Open 'HelloWorld' Project in Eclipse IDE
> ./eclipse

Update DBConnection.java with correct DB credentials

Ex.: "jdbc:mysql://localhost:3306/helloDB", "root", "l84w0rk"

In Eclipse IDE, run the Project 'as a Server' (Add Tomcat Server if prompted)

Try the app in a Browser !

http://localhost:8080/HelloWorld

1. Add Employees
2. Search Employees
3. Email Employees

TODOs:
* SSL/TLS: HTTP(S) encryption (Next Week)
* Solr Search: GET requests (Next Week)
* LDAP Authentications (***Soon)
* Ansible *.yml Playbook to automate all steps above (***Soon)
* Jenkins CI/CD pipeline (***Soon)

Enjoy !