Skip to content

astitou77/LastNameProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:https://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:https://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 !