Valorant Encyclopedia — where you will find everything about Valorant; from weapons, agents, to players.
Please refer to the .env.example
create a .env
file and ctrl + c
what's available in .env.example
then ctrl + v
into .env
and save.
## clone the repo
git clone https://github.com/realtouseef/valopedia.git
## move into the folder
cd valopedia
## download the necessary packages
yarn
yarn dev
Apparently getting pre-render
error for the [agent].tsx
A bit about the errors:
The API has 2 Sova
, one with isPlayableCharacter = true
and the other one with false
, and we are fetching the one with true
because it has all the data available.
Error is occuring because
- NextJS is creating static pages for every agent and the
Sova
withfalse
is being returned but with no data -- something like that. - running fine on
local
but when pushed tovercel
oryarn build
, the error occurs.
- Adding more content -- basically (almost) everything that is given by the API
-
Add Bundles (https://valorant-api.com/v1/bundles) and Bundle by Uuid (https://valorant-api.com/v1/bundles/{bundleUuid})
-
Add Contracts (https://valorant-api.com/v1/contracts) by uuid (https://valorant-api.com/v1/contracts/{contractUuid})
-
Add Sprays (https://valorant-api.com/v1/sprays) by uuid (https://valorant-api.com/v1/sprays/{sprayUuid})
-
Add Game Modes (https://valorant-api.com/v1/gamemodes) by uuid (https://valorant-api.com/v1/gamemodes/{gamemodeUuid})
-
Fix the Weapon page images (basically, make it more responsive)
-
Avoid repeatition
- Added Player Cards (https://valorant-api.com/v1/playercards) -- might add player cards by uuid (https://valorant-api.com/v1/playercards/{playercardUuid})
-
Add Gears (https://valorant-api.com/v1/gear) and Gear by Uuid (https://valorant-api.com/v1/gear/{gearUuid})
-
SEO
-
Move to TypeScript
-
Fix the
TypeError: Cannot read properties of null (reading 'displayIcon')
in production inagent/[agent].jsx
-
Fix the Weapon page layout
-
Move to styled-components
-
Create a Card component which takes childrens -- Agents, weapons, seasons, etc are shown on the homepage
-
Cache the pages (static pages don't need to be cached)
-
dynamically creating pages --
[...slug].jsx
on the pages folder -
Moving main page inside a card that displays "Agents" -- when clicked on it, it goes to another page that shows every agent
-
Add maps
-
maps/ee613ee9-28b7-4beb-9666-08db13bb2244
error isThe Range
and doesn't have adisplayIcon
— possible fix is to use ternary operator -
FIX THE DEPLOYMENT ERROR BEFORE ANYTHING ELSE.
-
TypeError: Cannot read properties of null (reading 'default')
is theSova
withisPlayableCharacter = false
id:/agent/ded3520f-4264-bfed-162d-b080e2abccf9
— possible fix is to use ternary operator -
Add competitive tiers (https://valorant-api.com/v1/competitivetiers) by uuid (https://valorant-api.com/v1/competitivetiers/{competitivetierUuid}) -- not adding buddies by uuid because same content
-
Add Weapon buddies (https://valorant-api.com/v1/buddies) -- not adding buddies by uuid because same content.