Skip to content

SPiedra955/html_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

Introduction

This is a project in which we have to design the front-end part of a back-end given by our teacher and design a working sample application, with this application we are going to use Servlets, HTML, CSS, Java, JavaScript, Maven and Apache Tomcat Server to create it. With this application we can send messages from one account to another as the main function, there are also some features like register a new user, add a friend by his e-mail and show the history of messages between users.

Downloads

  • Apache Tomcat Server version 9
  • Apache Maven 3.8.7
  • Eclipse IDE for Enterprise Java and Web Developers
  • gson-2.9.1.jar
  • mysql-connector-j-8.0.31.jar
  • ddl.sql

Amics

This is the name of this project, it is an application that allows us to send messages with our friends and it is divided into three pages which are Login.html, register.html and xat.html.

Login

This is the main page where we can access our application, it is a simple login page that is connected to a database of users, once the user is verified, the chat page is accessed.

This is the aspect of the page

image

If you are not registered in the database you can sign up clicking the button "Sign up".

Sign up

On this page you can create a new user by filling in the fields and choosing your country of origin through a bar with a list of all the countries.

Once registered the page redirects you to Login.html to access the database, otherwise if you have not clicked the register button you can return to the main page.

image

Chat

We access to this page if we succes with our login and this are his functions:

  • Add a friend by their e-mail, but this friend must be registered in our database.
  • The option to select a friend to initiate a chat and send a message to.
  • Display the message sent between two users and hide the conversation.

Choose a friend and send them a message

image

Our friend receive the message and answer it

image

Database

Inside the folder scripts you can find the a SQL file for create the database to use in this project,but we need one more table that isn't in our script it's the following:

CREATE TABLE message (
    id INT(11) AUTO_INCREMENT,
    origen VARCHAR(50),
    desti VARCHAR(50),
    text VARCHAR(50),
    PRIMARY KEY (id)
);