Contents
- If you're new to git and GitHub, go through The beginner’s guide to Git & GitHub first, then feel free to come back and contribute to this repo.
- Understand the project structure:
data:
- characters
- (all character jsons)
- weapons
- (all weapons jsons)
routes:
- (has all routes related to different features)
middlewares:
- (all middlewares to be used in project go here)
index.js: The entry point to the web server.
- If you just want to add a new character, weapons or boss etc., you'll just need to understand the
data
folder.
- Clone the repo and run
npm install
, that's basically it. - Add a
.env
file, and inside it, addPORT=5000
(or any port you wish). - To start the server locally, run
nodemon
. - You'll be able to access the routes on
localhost:PORT
(PORT here is whatever PORT you set up in.env
).
NOTE: Make sure the data you submit is correct. While PR review, if the data found will be incorrect, there's a good chance the PR will not be accepted. List:
Note: For reference, we'll take character details of xiao
- Each character needs these fields:
name
title
vision
weapon
nation
affiliation
rarity
constellation
birthday
description
skillTalents:
- name
- unlock
- description
- upgrades:
- name
- value
- type
- img
passiveTalents:
- name
- unlock
- description
- level
- img
constelltaions:
- name
- unlock
- description
- level
- img
vision_key
weapon_type
img:
- card
- constellation
- banner
- icon
- icon-big
- portrait
-
For images, go to genshin-wiki image upload (work-in-progess).
-
Add the [character].json in
/data/assets/characters
and open a PR. One of the maintainers (as of now just me) will review and merge the PR.