Skip to content

Sidebar #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 93 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
8994983
milestone 1
Abil-Shrestha Oct 20, 2023
be41fab
milestone 1
Abil-Shrestha Oct 20, 2023
1c1918e
Update user_stories.md
Abil-Shrestha Oct 20, 2023
78e233c
Mileston 2
Abil-Shrestha Oct 27, 2023
0c48627
Merge branch 'main' of https://github.com/Abil-Shrestha/web103_finalp…
Abil-Shrestha Oct 27, 2023
28f21f4
milestone 2
Abil-Shrestha Oct 27, 2023
5524c74
Milestone 3 update
Abil-Shrestha Nov 3, 2023
ac5a943
Server
Aashil412 Nov 3, 2023
86eb9ab
Merge pull request #17 from Abil-Shrestha/ServerBranch
Abil-Shrestha Nov 4, 2023
debe928
Sidebar and Navbar
Abil-Shrestha Nov 4, 2023
31b2483
Merge pull request #18 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 4, 2023
62d6e98
milestone 3 Complete
Abil-Shrestha Nov 4, 2023
2fa3485
Merge pull request #19 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 4, 2023
87d4266
modify env
Abil-Shrestha Nov 4, 2023
330a249
Merge pull request #20 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 4, 2023
85b322b
Frontend Update
Abil-Shrestha Nov 5, 2023
04682f9
Merge pull request #22 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 5, 2023
32b22f1
Search Functionality and Global Zustand Store
Abil-Shrestha Nov 5, 2023
7f6b691
update for gameCards and minor improvements
Abil-Shrestha Nov 5, 2023
80c45bc
Merge pull request #23 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 5, 2023
14b1efe
delete temp file
Abil-Shrestha Nov 5, 2023
b5e1745
Merge pull request #24 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 5, 2023
cbeb30e
Added GenreData
Abil-Shrestha Nov 6, 2023
f7f76ae
Merge pull request #25 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 6, 2023
5203cd5
Hover states, New Game data Schema & Refactor
Abil-Shrestha Nov 7, 2023
845843e
Data update
Abil-Shrestha Nov 7, 2023
b40412e
feat(addgames): Users are now able to create new games
Abil-Shrestha Nov 10, 2023
9d1f56e
Merge pull request #26 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 10, 2023
5de2df5
feat(updategame): Users can now update game info
Abil-Shrestha Nov 11, 2023
f406448
Merge pull request #27 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 11, 2023
0ae8416
feat(Frontend<->Backend): All Core features Completed
Abil-Shrestha Nov 11, 2023
0ca9db8
Merge branch 'sidebar'
Abil-Shrestha Nov 11, 2023
5e6445d
Merge pull request #28 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 11, 2023
3bb8d99
feat(users):route to get usersbyId
Abil-Shrestha Nov 15, 2023
205ee72
Merge pull request #31 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 15, 2023
48a3d01
feat(Auth):Login/Logout
Abil-Shrestha Nov 17, 2023
a95f233
Merge pull request #32 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 17, 2023
1efcdc7
bug(startscript)
Abil-Shrestha Nov 17, 2023
664a119
Merge pull request #33 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 17, 2023
ba1abf4
bugfix(start scripts fix)
Abil-Shrestha Nov 17, 2023
2408b76
Merge pull request #34 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 17, 2023
a52b9b7
URL FIX
Abil-Shrestha Nov 17, 2023
dbecd51
Merge pull request #35 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 17, 2023
8cc858e
Vite build!!!!
Abil-Shrestha Nov 17, 2023
6693dfa
Merge pull request #36 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
d02e82d
dependency fix
Abil-Shrestha Nov 18, 2023
96e03cb
Merge pull request #37 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
6a4c5b9
config fix
Abil-Shrestha Nov 18, 2023
8e878a6
Merge pull request #38 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
11f90b4
config fix
Abil-Shrestha Nov 18, 2023
310909a
Merge pull request #39 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
6482b88
config fix
Abil-Shrestha Nov 18, 2023
4dfae18
config fix
Abil-Shrestha Nov 18, 2023
d15805f
Merge pull request #40 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
7c50120
Another broken link fix
Abil-Shrestha Nov 18, 2023
b27df3c
slight refactor
Abil-Shrestha Nov 18, 2023
5d2fb96
Merge pull request #41 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
df2a6a7
fix fix fix
Abil-Shrestha Nov 18, 2023
1153e0b
Merge pull request #42 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
cc5e65d
vite config fix
Abil-Shrestha Nov 18, 2023
f6dc4ee
Merge pull request #43 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
1162a71
Client origin fix
Abil-Shrestha Nov 18, 2023
e8d71ba
Merge pull request #44 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
b8e20ff
logout fix
Abil-Shrestha Nov 18, 2023
27d83f1
Merge pull request #45 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
b7e818f
logout fix
Abil-Shrestha Nov 18, 2023
6277ce7
Merge pull request #46 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
74b8301
server patch up
Abil-Shrestha Nov 18, 2023
6664e1f
Merge pull request #47 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
c5fd20a
Update server.js
Abil-Shrestha Nov 18, 2023
0249d27
Merge pull request #48 from Abil-Shrestha/Abil-Shrestha-patch-1
Abil-Shrestha Nov 18, 2023
ee1ac40
last fix
Abil-Shrestha Nov 18, 2023
ce488c3
Merge pull request #49 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
8d7ea6b
last fix
Abil-Shrestha Nov 18, 2023
f8532e5
last fix
Abil-Shrestha Nov 18, 2023
df08ec1
Merge pull request #50 from Abil-Shrestha/sidebar
Abil-Shrestha Nov 18, 2023
2529811
reddis for session storage
Abil-Shrestha Nov 18, 2023
65204fb
Merge branch 'main' into sidebar
Abil-Shrestha Nov 18, 2023
9908175
server patch up
Abil-Shrestha Nov 18, 2023
fba163e
Merge branch 'sidebar' of https://github.com/Abil-Shrestha/web103_fin…
Abil-Shrestha Nov 18, 2023
e026846
server patch up
Abil-Shrestha Nov 18, 2023
fcccc68
server patch up
Abil-Shrestha Nov 18, 2023
2c97249
New attempt at login
Abil-Shrestha Nov 18, 2023
b1dd30a
New attempt at login
Abil-Shrestha Nov 18, 2023
e692041
Typoooo Fix :(
Abil-Shrestha Nov 18, 2023
078702e
Api Routes Fix
Abil-Shrestha Nov 18, 2023
480b87b
Update package.json
Abil-Shrestha Nov 18, 2023
daff4f1
Another Fix
Abil-Shrestha Nov 18, 2023
0ccefb7
Merge branch 'sidebar' of https://github.com/Abil-Shrestha/web103_fin…
Abil-Shrestha Nov 18, 2023
d3c7040
clear Deployment Cache
Abil-Shrestha Nov 18, 2023
34b1a6f
clear Deployment Cache
Abil-Shrestha Nov 18, 2023
feea92e
Final Commit
Abil-Shrestha Nov 18, 2023
427a883
new build config
Abil-Shrestha Nov 18, 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
99 changes: 81 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,112 @@
# [your app name here]
# PlayPal

CodePath WEB103 Final Project

Designed and developed by: [your names here]
Designed and developed by: [Abil Shrestha & Aashil Ahmad]

🔗 Link to deployed app:

## About

PlayPal is a web app tailored for avid gamers and casual players. It acts as your one-stop shop to uncover new games, receive personalized game suggestions, and stay current on the latest gaming news. With an intuitive interface, PlayPal simplifies exploring a universe of new gaming adventures.

### Description and Purpose

[text goes here]
The app features a robust database of games spanning all genres and platforms. Users can browse and search for games by title, genre, platform, and more. Staying current with the gaming world is a breeze with PlayPal. Peruse the latest gaming headlines, previews, and reviews. PlayPal takes the hassle out of game discovery. Its clean interface and wealth of gaming info empowers users to effortlessly find their next favorite game and connect with other gaming enthusiasts.

The purpose of PlayPal is to be the go-to platform for gamers to discover new game titles to play. Key goals include:

<ul>
<Li>Provide an extensive database of games across all platforms & genres to enable discovery</Li>
<Li>Offer powerful browsing, searching, and filtering to easily find games matching interests</Li>
<Li>Showcase key game details and metadata to learn about games before playing</Li>
<Li>Deliver personalized recommendations for new games based on past gameplay data</Li>
<Li>Keep users updated on news, releases, discussions, and trends in the gaming world</Li>
<Li>Cultivate an engaged community of gamers discussing games & recommendations</Li>
<Li>Continually expand and refine game database and discovery/recommendation features</Li>
</ul>

### Inspiration

[text goes here]
Rawg.io

## Tech Stack

Frontend:
Frontend: ReactJs, Zustand , Axios, Tailwind

Backend:
Backend: Node.js, Express, Passport.js, Postgresql

## Features

### [Name of Feature 1]
### ✅PostgreSQL database with tables for games, platforms, genres, etc.

Setup a PostgreSQL database with structured tables to store game data.

<img src='./client/public/feature.gif' title='db setuo' width='' alt='Video Walkthrough' />

### ✅Create RESTful API routes for games, platforms, and genres that support GET, POST, PATCH, and DELETE requests

Only Game Routes completed currently! Still under development!
<img src='./client/public/api.gif' title='api setup' width='' alt='Video Walkthrough' />

### ✅Setup Frontend

Sidebar and SearchBar done!
<img src='./client/public/dt.gif' title='frontend setup' width='' alt='Video Walkthrough' />

### ✅Create,Update,Delete Games

CRUD functionality for games

<img src='./client/public/Add_edit_delete.gif' title='CRUD Data' width='' alt='Video Walkthrough' />

### ✅Alert User if impossible data is entered

Validate game info entered by user before inserting or updating in the database.
<img src='./client/public/Validate_data.gif' title='Validate Data' width='' alt='Video Walkthrough' />

### ✅Data is fetched to the app using a Railway PostgreSQL database

Data is Fetched from Railway PostgreSQL database
<img src='./client/public/Data_from_Db.gif' title=' Data From Db' width='' alt='Video Walkthrough' />

### ✅React Router for dynamic routing to pages like Home, Games, Genres, Platforms, etc.

Use React Router to handle routing between app pages.

<img src='./client/public/Dynamic Routes.gif' title='dynamic Router' width='' alt='Video Walkthrough' />

### ✅Game search, filter, and sort functionality

Allow searching, filtering, and sorting the games list.

<img src='./client/public/Search and filter data.gif' title='Validate Data' width='' alt='Video Walkthrough' />

### ✅Reset database functionality

Reset databse to original state

<img src='./client/public/Data_reset.gif' title='Validate Data' width='' alt='Video Walkthrough' />

[short description goes here]
### ✅Break components into pages, containers, and presentational components

[gif goes here]
Organize components into pages, containers, and presentational components.

### [Name of Feature 2]
<img src='./client/public/Component Heirarchy.gif' title='Organize components' width='' alt='Video Walkthrough' />

[short description goes here]
### ✅Use Passport.js for GitHub OAuth login

[gif goes here]
Allow users to login via GitHub OAuth using Passport.js to restrict access to profile.
<img src='./client/public/login_logout.gif' title='Organize components' width='' alt='Login Logout' />

### [Name of Feature 3]
### ✅Redirect user to Login page if not authenticated when trying to access profile

[short description goes here]
Redirect to login page if user tries to access profile when unauthenticated.

[gif goes here]
<img src='./client/public/redirect.gif' title='Organize components' width='' alt='Redirec' />

### [ADDITIONAL FEATURES GO HERE - ADD ALL FEATURES HERE IN THE FORMAT ABOVE; you will check these off and add gifs as you complete them]
### ✅Well Designed API

## Installation Instructions
Setup a one to many relationship with Platforms and Genres.

[instructions go here]
<img src='./client/public/well_Api.gif' title='api setuo' width='' alt='Api Walkthrough' />
21 changes: 21 additions & 0 deletions client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-ts-comment": "off",
},
};
26 changes: 26 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env
20 changes: 20 additions & 0 deletions client/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto"
}
1 change: 1 addition & 0 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PlayPal
13 changes: 13 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/fav2.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PlayPal</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
50 changes: 50 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "playpal",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "npm cache clean --force && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"start": "npx http-server ./dist -a 0.0.0.0"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"dependencies": {
"@radix-ui/react-dialog": "^1.0.5",
"@tanstack/react-query": "^5.8.1",
"autoprefixer": "^10.4.16",
"axios": "^1.6.2",
"http-server": "14.1.1",
"minimatch": "^9.0.3",
"postcss": "^8.4.31",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"react-infinite-scroll-component": "^6.1.0",
"react-router-dom": "^6.18.0",
"react-toastify": "^9.1.3",
"serve": "^14.2.1",
"tailwindcss": "^3.3.5",
"zustand": "^4.4.6"
},
"devDependencies": {
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.1.1",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"prettier": "3.0.3",
"typescript": "^5.2.2",
"vite": "^4.5.0"
}
}
Loading