Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
832eac4
chores:make basic setup for server
Brandon-Hash268 Oct 28, 2024
632375c
chores:make table and databse setup for server
Brandon-Hash268 Oct 28, 2024
85788c4
feat:make register backend
Brandon-Hash268 Oct 28, 2024
f80280b
feat:make login backend
Brandon-Hash268 Oct 28, 2024
c3b13ea
feat:make centralized error handling
Brandon-Hash268 Oct 28, 2024
5d4b212
feat:make add favorite feature backend
Brandon-Hash268 Oct 28, 2024
bdc392c
feat:make delete favorite feature backend
Brandon-Hash268 Oct 28, 2024
2dff5f3
feat:make get favorite feature backend
Brandon-Hash268 Oct 28, 2024
7e0c840
feat:make update favorite feature backend
Brandon-Hash268 Oct 28, 2024
eafc494
chore:making setup for client side
Brandon-Hash268 Oct 29, 2024
a3369a8
chore:make test for user and favorite
Brandon-Hash268 Oct 29, 2024
f2f6d51
feat:make login page and register page for user
Brandon-Hash268 Oct 29, 2024
2e55fe9
fix:change the global authenticate to local to authenticate because i…
Brandon-Hash268 Oct 29, 2024
928472f
fix:wrong repo
Brandon-Hash268 Oct 29, 2024
560654a
feat:add profile table that contains imgUrl and add ProfileID role an…
Brandon-Hash268 Oct 29, 2024
4a55d58
feat:add feature where user can update their profile
Brandon-Hash268 Oct 29, 2024
28c6969
feat:add feature for admin to add avatar profile with multer
Brandon-Hash268 Oct 29, 2024
e6b07c1
chore:make .env example
Brandon-Hash268 Oct 29, 2024
e9ba7b3
chore:make test for get user and patch user
Brandon-Hash268 Oct 29, 2024
4319338
feat:make home page that display all the pokemon list from 3rd party …
Brandon-Hash268 Oct 30, 2024
054d8e1
feat:make function to generate fun fact using gemini when clicking th…
Brandon-Hash268 Oct 30, 2024
2acde2c
refactor:delete the fun fact column from favorite table also fix the …
Brandon-Hash268 Oct 30, 2024
32bf08e
feat:make google login/register succesfull on client side
Brandon-Hash268 Oct 30, 2024
282bd6c
feat:make google login/register succesfull on server side
Brandon-Hash268 Oct 30, 2024
087eb08
feat:make feature for admin to upload various pokemon avatar and also…
Brandon-Hash268 Oct 30, 2024
ad12d2a
feat:make feature for updating profile picture and User Name
Brandon-Hash268 Oct 30, 2024
8d74bf7
feat:make controller for fetching all profile pictures avaiable
Brandon-Hash268 Oct 30, 2024
d5f280a
refactor:delete column nickname from table favorite and change column…
Brandon-Hash268 Oct 31, 2024
cdd9a09
refactor:change delete favorite path and the params from id to pokemo…
Brandon-Hash268 Oct 31, 2024
2c58054
feat:make feature to add & remove favorite with sfx too
Brandon-Hash268 Oct 31, 2024
f2dffaa
fix:fix the authorization error
Brandon-Hash268 Oct 31, 2024
f6fb398
chore:make docs api
Brandon-Hash268 Oct 31, 2024
ef52f31
refactor:make setup for deploy
Brandon-Hash268 Oct 31, 2024
8722af3
refactor:change all base URL
Brandon-Hash268 Oct 31, 2024
29eaf81
chore:deploying client
Brandon-Hash268 Oct 31, 2024
29558fb
chore:adding some more api docs
Brandon-Hash268 Oct 31, 2024
eabc65e
feat:make upload image responsive
Brandon-Hash268 Nov 1, 2024
0087953
fix:add column userName to register
Brandon-Hash268 Nov 1, 2024
11d597f
Copy from my IP repo
Brandon-Hash268 Dec 2, 2024
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
16 changes: 16 additions & 0 deletions Client/IP-P2/.firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
vite.svg,1730199448522,699a02e0e68a579f687d364bbbe7633161244f35af068220aee37b1b33dfb3c7
assets/index-D0eM6ugt.css,1730425080931,a81754a585961ad32b5d05e685b53251198d78a4fb05b8bc5e12f455d2abf131
index.html,1730425080931,18a40afee26926e677ba7ec1648df07cd93fd098d8850588a1de266cccf90636
assets/pokemon-caught!-(pokemon-go-jingle)-made-with-Voicemod-cM1i-sd9.mp3,1730425080931,260a9b91c42e931b15ce37f64b1398ffaffb676a31c26e91f7bcc691335e2622
assets/sound-effects-pokemon-anime-7-pokemon-out-C2xPmKIw.mp3,1730425080931,dca569babca6869c45d457adf19e53fc21ae24c8d8c6a83d2ad4fecc9b0ee8bf
assets/clipart1298306-7zSEeGC5.png,1730425080930,1faf7783d82242a178dd750158857fd47bbc2ae70e3b8715aecfee5a4f961e4b
assets/image-removebg-preview-TKwxnxtB.png,1730425080929,38d6203281455c33d2e8428ae279ea74fa0401169f1f91fce3601da1c753b5a2
assets/mixkit-winning-a-coin-video-game-2069-tk8dF5Ds.wav,1730425080931,407968697d30c6eb16b53a8ad733b623ee1d21b70c8fdb5d2d67754caf83bd0f
assets/mixkit-unlock-game-notification-253-D0EQSH2R.wav,1730425080931,efa5049235acb3ab95ee9341c054e7e97bb8854e157e34fa71d46b14e8d6b0f0
assets/mixkit-gaming-lock-2848-DU5fKKP2.wav,1730425080931,cd5b2011c1ae0deac28a1e86b0b0465ac6a27ba4b93f326b45989326dd9c9ec0
assets/mixkit-bonus-earned-in-video-game-2058-0K3WAWXx.wav,1730425080931,6eb6f37d6449145b2bd625e616d1b4fb92cb01bc4c2d4f54174a981c6ec873d6
assets/mixkit-arcade-retro-game-over-213-B4UCIDkq.wav,1730425080931,35a52603a11605bb85e498268a4ea15c4455a3edb1e7260c6a6c382c2a2a27ec
assets/mixkit-wrong-answer-fail-notification-946-CBv4tsTo.wav,1730425080931,79894bf3de137a9335dc59cf208efb14ade0cd7ca2cf46d0b71df20200e8b1f2
assets/mixkit-unlock-new-item-game-notification-254-BDGFfpqW.wav,1730425080931,e81bf94e05d50b33dc951a8e80fd2872ab98ba67bc476a76af1c6a9141f6d136
assets/mixkit-player-jumping-in-a-video-game-2043-a0v3mjFw.wav,1730425080931,249322212c19edfed6e337e8c394ca20c7e5f6e64dd588ecbf1cd93df79fac48
assets/index-CgkBmZcL.js,1730425080931,501fa5c3c49ee2ecacc94998fdd2e9c3508649dda49be1e93b6d785c586f21e9
5 changes: 5 additions & 0 deletions Client/IP-P2/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ip-p2-58e76"
}
}
24 changes: 24 additions & 0 deletions Client/IP-P2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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?
8 changes: 8 additions & 0 deletions Client/IP-P2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
38 changes: 38 additions & 0 deletions Client/IP-P2/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: { react: { version: '18.3' } },
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...reactHooks.configs.recommended.rules,
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
16 changes: 16 additions & 0 deletions Client/IP-P2/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
17 changes: 17 additions & 0 deletions Client/IP-P2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="./src/images/image-removebg-preview.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://accounts.google.com/gsi/client" async></script>
<title>PokeDex</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
Loading