Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lahoucine El Aidous
java-web
Commits
ffbb2c53
Commit
ffbb2c53
authored
6 years ago
by
Lahoucine El Aidous
Browse files
Options
Downloads
Patches
Plain Diff
added table of contents and MAJ style
parent
8a4f1065
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+54
-22
54 additions, 22 deletions
README.md
with
54 additions
and
22 deletions
README.md
+
54
−
22
View file @
ffbb2c53
...
...
@@ -4,22 +4,45 @@
**This is a school web project.**
## Table of contents
*
[
Java-Web project
](
#java-web-project
)
*
[
Table of contents
](
#table-of-contents
)
*
[
Goals
](
#goals
)
*
[
General description
](
#general-description
)
*
[
Detailed description
](
#detailed-description
)
*
[
Backend
](
#backend
)
*
[
/VideoGame.java
](
#videogamejava
)
*
[
/VideoGamesRepository.java
](
#videogamesrepositoryjava
)
*
[
/StartupListener.java
](
#startuplistenerjava
)
*
[
/VideoGamesServlet.java
](
#videogamesservletjava
)
*
[
/ApiVideoGames.java
](
#apivideogamesjava
)
*
[
Frontend
](
#frontend
)
*
[
/added_chartist
](
#added_chartist
)
*
[
/pics
](
#pics
)
*
[
/index.html
](
#indexhtml
)
*
[
/chart.html
](
#charthtml
)
*
[
/videogames.html
](
#videogameshtml
)
*
[
/script.js
](
#scriptjs
)
*
[
/videoGamesStatic.jsp
](
#videogamesstaticjsp
)
*
[
Thank you for your time
](
#thank-you-for-your-time
)
## Goals
1.
Understanding
**MVC Architecture**
2.
Using
**Java**
in backend
*
`
Jsp
`
*
`
Servlets
`
*
**
Jsp
**
*
**
Servlets
**
3.
Using
**JavaScript**
in frontend
*
`
Jquery
`
*
`
ChartistJs
`
: for charts
*
**
Jquery
**
: for data manipulation
*
**
ChartistJs
**
: for charts
## General description
The project consists of building a web site that uses data from a
`CSV`
file.
This website has two parts :
1.
Static
1.
**
Static
**
:
*
Show video games data in a
**static**
table
2.
Dynamic
2.
**
Dynamic
**
:
*
Show video games data in a
**dynamic**
table
*
Plot video games data in a
**dynamic**
chart
...
...
@@ -28,19 +51,21 @@ This website has two parts :
As all web projects, we have a
**backend**
and a
**frontend**
.
### Backend
Consists of 5 java classes :
*
`VideoGame`
: a video game is one line of the
`CSV`
file. We keep all
columns .
*
`VideoGamesRepository`
: It groups all video games in a list. It can also :
Consists of 5
**java**
classes :
#### `/VideoGame.java`
A video game is one line of the
`CSV`
file. We keep all columns .
#### `/VideoGamesRepository.java`
It groups all video games in a list. It can also :
1.
add a video game
2.
return a sorted list of video games.
3.
return video games annual sales grouped by platform or genre.
*
`StartupListener`
: Reads the
`CSV`
and creates video games of it.
Then, it adds them to the repository and the context.
*
`VideoGamesServlet`
: a servlet for showing data in a static table.
*
`ApiVideoGames`
: an api servlet that returns a
`Json`
containing :
1.
raw video games data. But limited to a certain amount of rows (10
per page by default)
#### `/StartupListener.java`
Reads the
`CSV`
and creates video games of it. Then, it adds them to the repository and the context.
#### `/VideoGamesServlet.java`
A servlet for showing data in a static table.
#### `/ApiVideoGames.java`
An api servlet that returns a
`Json`
containing :
1.
raw video games data. But limited to a certain amount of rows (10 per page by default)
2.
or annual sales of video games grouped by platform or genre
### Frontend
...
...
@@ -57,7 +82,7 @@ I added some plugins and `CSS` related to `ChartistJs` :
2.
`chartist-plugin-axistitle.js`
: to add axis labels
3.
`my_chartist.css`
: to add colors to some series that were left
without coloring. In the default
`ChartistJs`
`CSS`
, they provided
coloring for only the first 15 series in a chart.
coloring for only
**
the first 15 series
**
in a chart.
#### `/pics`
Contains Home page image and logo.
...
...
@@ -82,3 +107,10 @@ Contains all the functions necessary for `/videogames.html` and `/chart.html`
#### `/videoGamesStatic.jsp`
Contains a static table that :
1.
shows data of video games (10 per page)
## Thank you for your time
**
*
If you have any suggestions on how I can improve my code and coding
style, please feel free to let me know.
**
*
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment