Giter Site home page Giter Site logo

module4's Introduction

Module 4 Mini-Project

Demo this project on the public URL of:

http://ec2-18-188-200-41.us-east-2.compute.amazonaws.com:8080/module4/user_registration

War package

Since maximum upload file size in Moodle is 10MB, please use this link to download the file if needed: https://github.com/anish01stha/module4/blob/master/target/module4.war

Following servlets are created:

/hi-servlet

/user_registration

/user_retreival

Components used:

Eclipse/ IntelliJ IDEA:
This project can be set up in both Eclipse or IntelliJ IDEA

Maven:
Dependency management and used to package project into a war file

Mysql:
Mysql was used as the relational databse

Hibernate:
The projects uses Hibernate with Mysql and connects to Database "db" as jdbc:mysql://localhost:3306/db

Xampp:
Xampp was used to run Mysql and Tomcat in the AWS EC2 instance

Amazon:
This program is hosted on a Windows 2002 Server in an Amazon EC2 instance

Project Structure

HibernateUtil.java:
Sets up connection with Mysql database and connects Hibernate

HelloServlet.java:
Just a servlet to ping that return "Hi!" message

UserDao.java:
The Hibernate ORM class used to map to MySql table that contains User Entity.

UserRegistration.java:
Returns page for user registration under /user_registration servlet

UserRetrieval.java:
Returns page for user retrieval under /user_retrieval servlet

UserService.java:
A service to save and retrieve UserDAO objects into MySql database. It is best to not write such logic in servlet classes and to abstract them out into service class. Hence, this was done for best practices.

Note: Html filles are in /WEB-INF as .jsp files to be used by servlet classes.

module4's People

Contributors

anish-stha avatar

Watchers

 avatar

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.