realtouseef / valopedia

Valorant Encyclopedia — where you will find everything about Valorant; from weapons, agents, to players.

Home Page:valopedia.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Valopedia 👾

Valorant Encyclopedia — where you will find everything about Valorant; from weapons, agents, to players.

Live Preview

https://valopedia.vercel.app

API

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.

Want to contribute?

## clone the repo
git clone https://github.com/realtouseef/valopedia.git

## move into the folder
cd valopedia

## download the necessary packages
yarn

To run dev

yarn dev

ERROR

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 with false is being returned but with no data -- something like that.
  • running fine on local but when pushed to vercel or yarn build, the error occurs.

Priority TODOs

  • Adding more content -- basically (almost) everything that is given by the API

Working on TODOs

TODOs

Future TODOs

Completed TODOs

  • 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 in agent/[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 is The Range and doesn't have a displayIcon — possible fix is to use ternary operator

  • FIX THE DEPLOYMENT ERROR BEFORE ANYTHING ELSE.

  • TypeError: Cannot read properties of null (reading 'default') is the Sova with isPlayableCharacter = 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.

About

Valorant Encyclopedia — where you will find everything about Valorant; from weapons, agents, to players.

valopedia.vercel.app


Languages

Language:TypeScript 97.6%Language:Shell 1.5%Language:JavaScript 0.9%