A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
2023-02-01 00:29:08 -08:00
.vscode First commit 2020-09-11 06:44:42 -07:00
components Add rel="noreferrer" 2023-01-31 23:57:01 -08:00
data Add character mod data to hovercard 2023-01-29 21:00:25 -08:00
hooks Lock scrolling body when Dialog is open 2023-01-15 10:36:38 -08:00
pages Fix titles 2023-01-31 23:47:08 -08:00
public Add favicon to all heads 2023-01-31 22:41:37 -08:00
styles Fix Github LinkItem color and LinkItem width 2023-01-31 23:18:46 -08:00
types Add local_id to Party definition 2023-01-31 01:23:20 -08:00
utils Add endpoints to api 2023-01-31 22:10:53 -08:00
.env.sample Update README and .env sample 2023-02-01 00:29:08 -08:00
.eslintrc.json Turn off no-img-element eslint rule 2022-01-29 18:09:43 -08:00
.gitignore Update .gitignore 2023-01-30 03:37:12 -08:00
.prettierignore Add prettierignore 2022-12-04 07:18:59 -08:00
.prettierrc Remove trailing semicolons 2022-12-05 17:54:46 -08:00
next-env.d.ts Create next-env.d.ts 2022-01-24 18:44:11 -08:00
next-i18next.config.js Update next-i18next.config.js 2022-03-05 02:29:50 -08:00
next.config.js Set content based on URL 2023-01-25 22:29:57 -08:00
package-lock.json Store edit key in localStorage on create response 2023-01-31 01:24:42 -08:00
package.json Store edit key in localStorage on create response 2023-01-31 01:24:42 -08:00
README.md Update README and .env sample 2023-02-01 00:29:08 -08:00
README.png Update README and .env sample 2023-02-01 00:29:08 -08:00
tsconfig.json Migrate to Next.js 2022-01-24 21:54:50 -08:00
tslint.json Create tslint.json 2022-01-28 23:19:31 -08:00

Header image for hensei-web hensei-web is the frontend for granblue.team, an app for saving and sharing teams for Granblue Fantasy.

Getting Started

First, you have to set up your environment file. .env.sample is provided as an example, but here we'll show an even more explicit example for running locally:

# Enable relative paths for imports.
NODE_PATH='src/'

# App URLs
# Don't add a trailing slash to these URLs.
# The API will run on port 3000 by default, but make sure to change
# this if you use a different port.
NEXT_PUBLIC_SIERO_API_URL='http://127.0.0.1:3000/api/v1'
NEXT_PUBLIC_SIERO_OAUTH_URL='http://127.0.0.1:3000/oauth'

# This will serve images out of the Next.js /public directory in development,
# but in production, you will want this to host these images on a cloud storage provider
# like Amazon S3, and then change this to the full bucket URL.
NEXT_PUBLIC_SIERO_IMG_URL='/images'

# You will have to use a Google account to acquire a Youtube API key
# or embeds will not work!
NEXT_PUBLIC_YOUTUBE_API_KEY=''

Then, install all dependencies:

npm install
# or
yarn install

Then, run the development server with:

npm run dev
# or
yarn dev

Assets

The hensei-api has tasks that will help you get assets, although some were crafted or renamed by hand. The front-end expects this folder structure inside of the images folder:

/
├─ accessory-grid/
├─ accessory-square/
├─ awakening/
├─ ax/
├─ chara-main/
├─ chara-grid/
├─ chara-square/
├─ jobs/
├─ job-icons/
├─ job-skills/
├─ mastery/
├─ summon-main/
├─ summon-grid/
├─ summon-square/
├─ updates/
├─ weapon-main/
├─ weapon-grid/
├─ weapon-square/