Giter VIP home page Giter VIP logo

personalwebapp's Introduction

personalWebApp

personalWebApp based on HTML, CSS, javascript, Java - Backend, maven and spring

personalwebapp's People

Contributors

rhedbull avatar

Watchers

 avatar

personalwebapp's Issues

simple dynamic web page

connected htm/jsp file to server
test:

  • you can access the first page on localhost:8080
  • you can jump to the next page using a button

update function User

updateUser function

  • have a function called : "updateUser(int userID, User u){}"
  • it updates a whole User in Db of an already existing user in DB
  • it throws an exception if that fails
  • it prints some error message in console if it fails
  • it prints a message if it works

deleting nonexistant user

  • add logic that detects when the method tries to delete a user which does not exist
  • add an error message that will be printed !!

insert new user in DB

insert new user in DB

  • should add a new user to DB via a query like:
    "Insert into users(lastName,name,birthDate,eMail, password) values("Mustermann", "Hermann", 1968643592, "[email protected]", "password");"
  • userID should automatically continue counting
  • test if new Database from JVM is automatically updated

delete user

delete user

  • method public void deleteUser(int userID) { }
  • deletes the user with the certain user ID in userDB.db
  • prints successful statement when it worked
  • prints error message when it failed
  • prints special error message when user does not exist

servlet web page

Test:

  • have a servlet class representing html

  • understand the servlet class

  • it should be accessible via localhost:8080

animated simple html page

create and connect simple javascript code / node js and connect it to html page to appache server
Test:
picture slide show, on button click
color change on button

add exception handler for duplicate email adress

  • code should recognize if sth like following exception is thrown:
    org.sqlite.SQLiteException: [SQLITE_CONSTRAINT] Abort due to constraint violation (UNIQUE constraint failed: users.eMail)
  • it should then print sth like your email is already registered ......

input on web page

Test

  • have 2 form on page where user can input sth

  • both values should appear in a variable in java code debugger

  • print the input or combination of input on web page

logic web page

Test:

  • have java logic be printed on page on button click

date to miliseconds

  • create function that can convert String DAte format such as 24.08.2020 into int milliseconds since 1970 to save in Db
  • test by reconverting it from int to a date Object

static web page desing

create and connect simple css file connected to HTML file/page to appache server
Test:

  • "hello world" and box on the web page in different color
  • different background color
  • use selectors: id, ...

get Data from DB

Test:

  • hava a query executed in database once button is pressed
  • have the data appear in a variable in Java
  • have a getData method that returns the query as a result set

update functionString

update function String

  • have a function called : "updateUserString(int userID, String columnIndex, String columnValue){}"
  • it updates a String value of an already existing user in DB
  • it throws an exception if that fails
  • it prints some error message in console if it fails
  • it prints a message if it works

data driven web page, connection to DB

Test:

  • Connection to mysql database
  • print connection successful when connected
  • print connection failed when not connecting
  • have it be a method that returns a connection Object

jsp web page

Test

  • hava a jsp file represnting html code

  • understand the jsp file

  • it should be accessible on localhost:8080

update functions with new column in DB "password"

  • add private String password with getters and setters in user.java
  • update following methods:
    public void print(){}; in user.java
    public User getUser (int id) {} ; in userDAO.java
  • retest if you can extract password and other variables of user Object

folder for html files

create a folder in WebInf to collect all HTML files

test:

  • page should still be accessible on localhost
  • page should still print the same stuff as before

animated dynamic web app

Test

  • have 2 html/ jsp pages
  • have one start page
  • start page still accesible over localhost 8080
  • change page to 2nd page after button click and back

folder for css files

create a folder in WebInf to collect all cssfiles

test:

  • page should still be accessible on localhost
  • page should still print the same stuff as before

static html page

create and connect simple html page to appache server
Test:
it should be accessible by localhost:8080;
it should print "hello worl" or something like that in a box

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.