List of commits:
Subject Hash Author Date (UTC)
Added SQL to create a database to store information 38ffdd899a0661a74ed3e561a120ad3b4a26f590 Eyad-Syrialover 2019-06-30 00:10:18
Added the layout view which gives all other views consistent look a7f328de8a743d4f797b783c0629d9b23943818a Eyad-Syrialover 2019-06-29 23:30:28
Added the index view 5c42739ac6307469f5359e228f35b8dcf691cc65 Eyad-Syrialover 2019-06-29 23:29:59
Added head view which contains shared metadata between all views 579afb2c9cd36138c0fa83ccd5197f1d9c7031ce Eyad-Syrialover 2019-06-29 23:29:43
Added error view to display error in formatted way bc9cce79be8604c75552c625ab4c6925a5716472 Eyad-Syrialover 2019-06-29 23:29:12
Added the index router b56dae5e53f2b66097097738b22a19daec2525c5 Eyad-Syrialover 2019-06-29 23:28:42
Added environment file 131a260f3d3f5d12325eaabd610e587d06febb31 Eyad-Syrialover 2019-06-29 23:27:50
Added several dependencies 37c6d78ba8dccd2a1283afd1704832107017cfdb Eyad-Syrialover 2019-06-29 23:24:34
Changed rendering engine from pug to ejs 2c943981b7198244acf380d9cf91ea7bc791dc7a Eyad-Syrialover 2019-06-29 23:24:01
Fixed a typo 91ddbb8be27a137673c37d0f3bf1df558133b806 Eyad-Syrialover 2019-06-29 22:53:45
Added package.json file 956e9cb09b69f9d3a2ce25598029dc0fab736b4e Eyad-Syrialover 2019-06-29 22:53:17
Initial commit c6ddf0e93aa68dd6da04514c1be992a5a3bf0115 Eyad Mohammed Osama (Syrian Lucianos) 2019-06-29 22:46:10
Commit 38ffdd899a0661a74ed3e561a120ad3b4a26f590 - Added SQL to create a database to store information
Author: Eyad-Syrialover
Author date (UTC): 2019-06-30 00:10
Committer name: Eyad-Syrialover
Committer date (UTC): 2019-06-30 00:10
Parent(s): a7f328de8a743d4f797b783c0629d9b23943818a
Signing key:
Tree: 55e9e48743aded017809699a3b56d4c4c42d297d
File Lines added Lines deleted
NewsWebsite.sql 160 0
File NewsWebsite.sql added (mode: 100644) (index 0000000..c71119d)
1 -- phpMyAdmin SQL Dump
2 -- version 4.8.2
3 -- https://www.phpmyadmin.net/
4 --
5 -- Host: 127.0.0.1
6 -- Generation Time: Jun 30, 2019 at 02:07 AM
7 -- Server version: 10.1.34-MariaDB
8 -- PHP Version: 7.2.7
9
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 SET AUTOCOMMIT = 0;
12 START TRANSACTION;
13 SET time_zone = "+00:00";
14
15
16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
17 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
18 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
19 /*!40101 SET NAMES utf8mb4 */;
20
21 --
22 -- Database: `NewsWebsite`
23 --
24
25 DROP DATABASE IF EXISTS `NewsWebsite`;
26 CREATE DATABASE IF NOT EXISTS `NewsWebsite`;
27 USE `NewsWebsite`;
28
29 -- --------------------------------------------------------
30
31 --
32 -- Table structure for table `Categories`
33 --
34
35 CREATE TABLE `Categories` (
36 `ID` int(11) NOT NULL,
37 `Name` varchar(30) COLLATE utf8_bin NOT NULL
38 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
39
40 -- --------------------------------------------------------
41
42 --
43 -- Table structure for table `Images`
44 --
45
46 CREATE TABLE `Images` (
47 `ID` int(11) NOT NULL,
48 `Name` varchar(32) COLLATE utf8_bin NOT NULL
49 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
50
51 -- --------------------------------------------------------
52
53 --
54 -- Table structure for table `News`
55 --
56
57 CREATE TABLE `News` (
58 `ID` varchar(32) COLLATE utf8_bin NOT NULL,
59 `Title` text COLLATE utf8_bin NOT NULL,
60 `Content` text COLLATE utf8_bin NOT NULL,
61 `Timestamp` varchar(10) COLLATE utf8_bin NOT NULL,
62 `ReadingTimes` int(11) NOT NULL
63 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
64
65 -- --------------------------------------------------------
66
67 --
68 -- Table structure for table `NewsCategories`
69 --
70
71 CREATE TABLE `NewsCategories` (
72 `NewsID` varchar(32) COLLATE utf8_bin NOT NULL,
73 `CategoryID` int(11) NOT NULL
74 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
75
76 -- --------------------------------------------------------
77
78 --
79 -- Table structure for table `NewsImages`
80 --
81
82 CREATE TABLE `NewsImages` (
83 `NewsID` varchar(32) COLLATE utf8_bin NOT NULL,
84 `ImageID` int(11) NOT NULL
85 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
86
87 --
88 -- Indexes for dumped tables
89 --
90
91 --
92 -- Indexes for table `Categories`
93 --
94 ALTER TABLE `Categories`
95 ADD PRIMARY KEY (`ID`);
96
97 --
98 -- Indexes for table `Images`
99 --
100 ALTER TABLE `Images`
101 ADD PRIMARY KEY (`ID`);
102
103 --
104 -- Indexes for table `News`
105 --
106 ALTER TABLE `News`
107 ADD PRIMARY KEY (`ID`);
108
109 --
110 -- Indexes for table `NewsCategories`
111 --
112 ALTER TABLE `NewsCategories`
113 ADD KEY `CategoryID` (`CategoryID`),
114 ADD KEY `NewsID` (`NewsID`);
115
116 --
117 -- Indexes for table `NewsImages`
118 --
119 ALTER TABLE `NewsImages`
120 ADD KEY `ImageID` (`ImageID`),
121 ADD KEY `NewsID` (`NewsID`);
122
123 --
124 -- AUTO_INCREMENT for dumped tables
125 --
126
127 --
128 -- AUTO_INCREMENT for table `Categories`
129 --
130 ALTER TABLE `Categories`
131 MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
132
133 --
134 -- AUTO_INCREMENT for table `Images`
135 --
136 ALTER TABLE `Images`
137 MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
138
139 --
140 -- Constraints for dumped tables
141 --
142
143 --
144 -- Constraints for table `NewsCategories`
145 --
146 ALTER TABLE `NewsCategories`
147 ADD CONSTRAINT `newscategories_ibfk_1` FOREIGN KEY (`CategoryID`) REFERENCES `Categories` (`ID`) ON DELETE CASCADE,
148 ADD CONSTRAINT `newscategories_ibfk_2` FOREIGN KEY (`NewsID`) REFERENCES `News` (`ID`) ON DELETE CASCADE;
149
150 --
151 -- Constraints for table `NewsImages`
152 --
153 ALTER TABLE `NewsImages`
154 ADD CONSTRAINT `newsimages_ibfk_1` FOREIGN KEY (`ImageID`) REFERENCES `Images` (`ID`) ON DELETE CASCADE,
155 ADD CONSTRAINT `newsimages_ibfk_2` FOREIGN KEY (`NewsID`) REFERENCES `News` (`ID`) ON DELETE CASCADE;
156 COMMIT;
157
158 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
159 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
160 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/EyadMohammedOsama/News-Website

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/EyadMohammedOsama/News-Website

Clone this repository using git:
git clone git://git.rocketgit.com/user/EyadMohammedOsama/News-Website

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main