Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
0dafea5
refactor/128/settings-refactor
ahmedasad236 Dec 2, 2022
fc1728c
feature/26/create_post
ahmedasad236 Dec 4, 2022
649aa0a
feature/26/create_post
ahmedasad236 Dec 5, 2022
e498871
Remove jwt-decode from Login
ahmedasad236 Dec 5, 2022
58b2bfb
feature/26/create_post
ahmedasad236 Dec 7, 2022
4a2b5e2
Updated the Layout style
MUSTAFA-Hamzawy Dec 7, 2022
fa77c91
Merge pull request #151 from RedditxClone/subreddit_mod_tools_page
ahmedasad236 Dec 7, 2022
64e292f
origin/fix/148/save_token
ahmedasad236 Dec 7, 2022
42abf1a
Merge branch 'fix/148/save_token' into refactor/152/continue_with_goo…
ahmedasad236 Dec 7, 2022
a57e60d
Update ModToolsPage.jsx
MUSTAFA-Hamzawy Dec 7, 2022
03c9370
Merge pull request #153 from RedditxClone/subreddit_mod_tools_page
ahmedasad236 Dec 7, 2022
3cdd167
Fixed a bug
MUSTAFA-Hamzawy Dec 7, 2022
ccbb2bb
Merge pull request #154 from RedditxClone/subreddit_mod_tools_page
ahmedasad236 Dec 7, 2022
762f7d9
user managment
Karim-Mohamed20 Dec 8, 2022
e58b63d
Documented the ModQueue Component
MUSTAFA-Hamzawy Dec 8, 2022
2888b6a
Implemented the Mod Queue Component
MUSTAFA-Hamzawy Dec 8, 2022
747d2c1
Merge branch '155/feature/mod_queues_spam_edited_unmoderated' of http…
MUSTAFA-Hamzawy Dec 8, 2022
2a41c4e
feature/26/create_post
ahmedasad236 Dec 9, 2022
3f09bd0
Finished the layout of the Post Page
MUSTAFA-Hamzawy Dec 11, 2022
2a2651f
feature/26/create_post
ahmedasad236 Dec 12, 2022
0cc6d42
feature/26/create_post
ahmedasad236 Dec 13, 2022
860640d
Integrated the endpoints with the search page
MUSTAFA-Hamzawy Dec 14, 2022
9941a89
Merge pull request #164 from RedditxClone/163/api/endpoints_of_the_se…
ahmedasad236 Dec 14, 2022
46e2e20
Enhancement for the layout of the mod tools page
MUSTAFA-Hamzawy Dec 15, 2022
646a85a
Enhancement for the layout of the mod tools page
MUSTAFA-Hamzawy Dec 15, 2022
cafafc1
Merge pull request #167 from RedditxClone/166/enhancement/modifying_m…
ahmedasad236 Dec 15, 2022
b6e54f6
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
MUSTAFA-Hamzawy Dec 15, 2022
9833c28
feature/26/create_post
ahmedasad236 Dec 16, 2022
8dd0dd6
feature/26/create_post
ahmedasad236 Dec 16, 2022
3287644
Integrated the endpoints with the subreddit page
MUSTAFA-Hamzawy Dec 16, 2022
cdcd1a4
Added a component to fetch the user data in Utilities
MUSTAFA-Hamzawy Dec 16, 2022
4740bf8
Merge pull request #170 from RedditxClone/168/enhancement/integrating…
ahmedasad236 Dec 16, 2022
a642841
api/165/get_communities_for_user
ahmedasad236 Dec 16, 2022
291e16f
api/165/get_communities_for_user
ahmedasad236 Dec 16, 2022
e8fa9d3
Merge pull request #173 from RedditxClone/api/165/get_communities_for…
ahmedasad236 Dec 16, 2022
4a45782
Merge branch 'development' of github.com:RedditxClone/Frontend into f…
ahmedasad236 Dec 16, 2022
28ef66d
fix/175/get_user_data_in_home_page
ahmedasad236 Dec 16, 2022
c1c3f1b
Merge pull request #176 from RedditxClone/fix/175/get_user_data_in_ho…
ahmedasad236 Dec 16, 2022
1eb641c
fix/174/redirect_after_creating_community
ahmedasad236 Dec 16, 2022
d8f191f
Merge pull request #177 from RedditxClone/fix/174/redirect_after_crea…
ahmedasad236 Dec 16, 2022
4860001
Merge branch 'development' into refactor/152/continue_with_google_github
ahmedasad236 Dec 17, 2022
f1721aa
Added the fetch user data component to be added on each page
MUSTAFA-Hamzawy Dec 17, 2022
cab4f0c
Added some services
MUSTAFA-Hamzawy Dec 17, 2022
252546c
Integrated the search page with the endpoints
MUSTAFA-Hamzawy Dec 17, 2022
f4c9d81
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
MUSTAFA-Hamzawy Dec 17, 2022
46056f2
Merge pull request #179 from RedditxClone/178/enhancement/integrating…
ahmedasad236 Dec 17, 2022
e510c95
172-enhancement-message-element
nadaaosman Dec 17, 2022
46987bb
Fixed some bugs in the subreddit page
MUSTAFA-Hamzawy Dec 17, 2022
885c494
Merge pull request #182 from RedditxClone/181/bug/fix_a_bug_in_the_su…
ahmedasad236 Dec 17, 2022
fb7e6a0
refactor/152/continue_with_google_github
ahmedasad236 Dec 17, 2022
95053d5
refactor/152/continue_with_google_github
ahmedasad236 Dec 17, 2022
f162491
refactor/152/continue_with_google_github
ahmedasad236 Dec 17, 2022
85ed2b2
Merge pull request #184 from RedditxClone/refactor/152/continue_with_…
ahmedasad236 Dec 17, 2022
aa3be66
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
Karim-Mohamed20 Dec 18, 2022
adbe085
Merge branch 'refactor/128/settings-refactor' of https://github.com/R…
Karim-Mohamed20 Dec 18, 2022
9a2cebb
Merge branch 'development' into refactor/128/settings-refactor
Karim-Mohamed20 Dec 18, 2022
24bbbcf
Merge pull request #186 from RedditxClone/refactor/128/settings-refactor
ahmedasad236 Dec 18, 2022
8aa0c5d
Fix Error element in routing index.jsx
ahmedasad236 Dec 18, 2022
13c718a
feature/159/send_private_message
ahmedasad236 Dec 18, 2022
04047f5
feature/159/send_private_message
ahmedasad236 Dec 18, 2022
9663cd0
Integrated the post page with the endpoints
MUSTAFA-Hamzawy Dec 18, 2022
f3f3b3e
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
MUSTAFA-Hamzawy Dec 18, 2022
b73d0a0
feature/159/send_private_message
ahmedasad236 Dec 19, 2022
1f505fe
feature/159/send_private_message
ahmedasad236 Dec 19, 2022
98b35ef
fix/190/send_token_in_create_community
ahmedasad236 Dec 19, 2022
908edb2
Merge pull request #191 from RedditxClone/fix/190/send_token_in_creat…
ahmedasad236 Dec 19, 2022
f5fcd85
Merge from the development branch
ahmedasad236 Dec 19, 2022
df1d6bb
Bayez
ahmedasad236 Dec 19, 2022
0019d76
conflict solved
ahmedasad236 Dec 19, 2022
1a9b0a2
feature/26/create_post
ahmedasad236 Dec 19, 2022
8ff056a
feature/159/send_private_message
ahmedasad236 Dec 19, 2022
afbc59e
finished the listing of the posts
MUSTAFA-Hamzawy Dec 20, 2022
2ac34b8
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
MUSTAFA-Hamzawy Dec 20, 2022
02097d7
postReplies and userMentions
Karim-Mohamed20 Dec 20, 2022
a57272c
Merge pull request #194 from RedditxClone/193/api/listing_the_posts_i…
ahmedasad236 Dec 20, 2022
e006997
json
Karim-Mohamed20 Dec 20, 2022
6e7a35f
merged with sent private message
Karim-Mohamed20 Dec 20, 2022
2ff7313
edit api
Karim-Mohamed20 Dec 20, 2022
f1c9e64
Fixing some errors in packages
ahmedasad236 Dec 20, 2022
09eabea
comment
Karim-Mohamed20 Dec 20, 2022
b11f080
Merge branch 'feature/26/create_post' into 200/comments
Karim-Mohamed20 Dec 20, 2022
8fc50aa
sweet element is done
nadaaosman Dec 20, 2022
dcd1777
feature/26/create_post
ahmedasad236 Dec 20, 2022
7f4b076
Integrated the mod queues with the end points
MUSTAFA-Hamzawy Dec 20, 2022
c74fefe
Merge branch 'development' of https://github.com/RedditxClone/Fronten…
MUSTAFA-Hamzawy Dec 20, 2022
2e5a594
Merge pull request #207 from RedditxClone/204/api/integrating_mod_que…
ahmedasad236 Dec 20, 2022
d5d67ef
feature/26/create_post
ahmedasad236 Dec 20, 2022
cd28b77
feature/26/create_post
ahmedasad236 Dec 20, 2022
055bc7c
Merge branch 'development' into feature/26/create_post
ahmedasad236 Dec 20, 2022
2dc8f3b
Merge pull request #209 from RedditxClone/feature/26/create_post
ahmedasad236 Dec 20, 2022
25730d9
comments
Karim-Mohamed20 Dec 20, 2022
e2a6ddf
Merge branch 'development' into 200/comments
MUSTAFA-Hamzawy Dec 20, 2022
ad66317
Merge pull request #211 from RedditxClone/200/comments
ahmedasad236 Dec 20, 2022
e4c3fe9
Merge pull request #203 from RedditxClone/172-enhancement-message-ele…
ahmedasad236 Dec 20, 2022
589d208
Add communities of the user in nav bar
ahmedasad236 Dec 20, 2022
d76fe63
Merge pull request #213 from RedditxClone/refactor/212/nav_bar_requests
ahmedasad236 Dec 20, 2022
fe8dada
Merge branch 'feature/187/post_replies_user_mentions' into development
ahmedasad236 Dec 20, 2022
a71148a
Merge Post replies
ahmedasad236 Dec 20, 2022
463521d
Add routing to messages in nav bar
ahmedasad236 Dec 20, 2022
45c60cc
Add protected routes and redirect to post page after creating a post
ahmedasad236 Dec 20, 2022
d815c58
Add route to posts on user profile
ahmedasad236 Dec 20, 2022
7c7fe0e
Finish push
ahmedasad236 Dec 20, 2022
98d2d07
Final Push
ahmedasad236 Dec 20, 2022
d368052
Fix import errors and some fetal erros
ahmedasad236 Dec 22, 2022
3356294
Fix images error
ahmedasad236 Dec 22, 2022
e5c8deb
Fix post Bugs
ahmedasad236 Dec 22, 2022
c8adf8d
remove media from create post
ahmedasad236 Dec 22, 2022
688ff08
Fix subreddit logo bug
ahmedasad236 Dec 23, 2022
5fd3382
Fix Routing to community bug, and search results bugs
ahmedasad236 Dec 23, 2022
a48398d
Fix typo in forgetUsername request
ahmedasad236 Dec 24, 2022
b792ec8
Update Jenkinsfile
Mahmedamer Dec 24, 2022
6e4d876
Fix env variable for media url
ahmedasad236 Dec 25, 2022
4efb57e
Merge branch 'fix_fetal_bugs' of github.com:RedditxClone/Frontend int…
ahmedasad236 Dec 25, 2022
6bc7718
Update Jenkinsfile
Mahmedamer Dec 25, 2022
b271252
Fix loading problem
ahmedasad236 Dec 25, 2022
d67b501
Merge branch 'fix_fetal_bugs' of github.com:RedditxClone/Frontend int…
ahmedasad236 Dec 25, 2022
485b00b
Merge pull request #226 from RedditxClone/fix_fetal_bugs
ahmedasad236 Dec 25, 2022
0f83eb8
Add documentation for the project
ahmedasad236 Dec 25, 2022
ac503a0
Move README
ahmedasad236 Dec 25, 2022
49cd72e
Update README
ahmedasad236 Dec 25, 2022
d7aa65b
Update README.md
ahmedasad236 Dec 26, 2022
f076d18
Update README.md
AhmedAlaa2024 Jan 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"files.associations": {
"iostream": "cpp"
}
}
15 changes: 4 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
pipeline {
agent any
stages {
stage('Docker') {
environment {
REACT_APP_BASE_URL = credentials('BASE_URL')
}
steps {
sh '''
cd reddit-front
echo REACT_APP_BASE_URL=$REACT_APP_BASE_URL > .env
docker-compose -p 'phase2' up --build -d
'''
}
stage ('Starting Devops job') {
steps {
build job: 'devops-repo'
}
}
}
}
121 changes: 119 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,120 @@
# Frontend
<header style="display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid white;margin-bottom: 35px">
<h1 style="text-align: center; font-weight:700"> RedditXClone </h1>

This repository is made for frontend subteam which are responsible for developing the website's frontend of the Reddit Clone.
<div style="margin-bottom: 10px">
<img src="./reddit-front/readme_images/reddit.png" >
</div>
<div>
</div>
</header>
<div>
<h1 style="font-weight:700;">Introduction</h1>
<p style="font-size:18px;">This is our whole clone for <a href="https://swproject.demosfortest.com/">Reddit </a>social media website. This work starts in October 2022.</p>


</div>

<div style="border-bottom: 1px solid white; margin-bottom: 10px">
<h1 style="font-weight:700;">Technologies</h1>
<ul>
<li style="font-size: 15px;"><a href="https://reactjs.org/">React v18.2.0</a></li>
<li style="font-size: 15px;"><a href="https://mui.com/">Material UI</a> for existing components and some animations.</li>
<li style="font-size: 15px;"><a href="https://react-icons.github.io/react-icons/search">React-icons</a> Library for icons as components</li>
<li style="font-size: 15px;"><a href="https://redux-toolkit.js.org/">Redux-Toolkit</a> For saving every thing related to the current user</li>
<li style="font-size: 15px;"><a href="https://draftjs.org/">Draft-js</a> For creating a post editor</li>
<li><a href="https://www.npmjs.com/package/draft-js-export-markdown">draft-js-export-markdown</a> For converting the editor state to markdown text</li>
<li><a href="https://www.npmjs.com/package/draft-js-import-markdown">draft-js-import-markdown</a> For converting the readme text to the state to markdown text</li>
<li><a href="https://www.npmjs.com/package/react-google-login">React-Google-login</a> For continue with Google feature</li>
<li><a href="https://jsdoc.app/">JsDoc</a> For functional documentation</li>
</ul>


</div>

<div>
<h1 style="font-weight:700;">Features</h1>
<ul>
<li style="font-size: 15px;">Login</li>
<li style="font-size: 15px;">Sign Up</li>
<li style="font-size: 15px;">Forget username</li>
<li style="font-size: 15px;">Forget userpassowrd</li>
<li style="font-size: 15px;">Continue with Google</li>
<li style="font-size: 15px;">Home Page</li>
<li style="font-size: 15px;">Subreddit Page</li>
<li style="font-size: 15px;">Search</li>
<li style="font-size: 15px;">Create Post</li>
<li style="font-size: 15px;">Create subreddit</li>
<li style="font-size: 15px;">Post full page</li>
<li style="font-size: 15px;">send private message</li>
</ul>

</div>



<div>
<h1 style="font-weight:700;">Installation</h1>
<p>
Start with the packages put in packages.json, then run the following command.
<code>npm i</code>
<p>
if you faced a problem with the previous command try using legacy or force
</p>
</p>

</div>

<div>
<h1 style="font-weight:700;">Show Case</h1>
<ul>
<li style="font-size: 15px;">
<h3>Home page</h3>
<img src="./reddit-front/readme_images/home_page.gif">
</li>
<li style="font-size: 15px;">
<h3>Login</h3>
<img src="./reddit-front/readme_images/login.gif">
</li>
<li style="font-size: 15px;">
<h3>Sign Up</h3>
<img src="./reddit-front/readme_images/sign_up.gif">
</li>
<li style="font-size: 15px;">
<h3>Continue With Google</h3>
<img src="./reddit-front/readme_images/google.gif">
</li>
<li style="font-size: 15px;">
<h3>Create subreddit and subreddit page</h3>
<img src="./reddit-front/readme_images/cs.gif">
</li>
<li style="font-size: 15px;">
<h3>Create text Post and Post Page</h3>
<img src="./reddit-front/readme_images/cp_text.gif">
</li>
<li style="font-size: 15px;">
<h3>Create Post with images and Post Page</h3>
<img src="./reddit-front/readme_images/cp_images.gif">
</li>
<li style="font-size: 15px;">
<h3>Search</h3>
<img src="./reddit-front/readme_images/search.gif">
</li>
<li style="font-size: 15px;">
<h3>Send private message</h3>
<img src="./reddit-front/readme_images/mess.gif">
</li>
</ul>


</div>

<div>
<h1 style="font-weight:700;">Future Features</h1>
<ul>
<li style="font-size: 15px;">Profile Page</li>
<li style="font-size: 15px;">Notifications</li>
<li style="font-size: 15px;">Messages</li>
<li style="font-size: 15px;">Moderation tools</li>
</ul>

</div>
81 changes: 0 additions & 81 deletions reddit-front/README.md

This file was deleted.

Loading