Welcome to FFBE Equip Next, an online tool for Final Fantasy Brave Exvius. Features include building units/parties, searching units/gear, and saving user inventory/units/espers.
Check it out here: https://ffbeequipnext.com/
This first point explain how to get a barebone FFBE Equip local server in 5 mintes. This server won't have login capability. See further points for a full featured local server.
See instructions from here : https://docs.docker.com/get-docker/ and https://docs.docker.com/compose/install/ (Docker-compose is already installed when you install docker on Windows or MAc)
From https://github.com/lyrgard/ffbeEquip/tree/master/docker_compose and put them in a folder of your choice.
Rename .config.json.sample
into .config.json
Edit .config.json
to change the secret
value into some random characters
If you want to use Google Drive for personal data make sure to set the enabled flag in the google section of .config.json to true.
In the folder where you saved the files, run docker-compose up -d
Open your browser at https://localhost:3000 to verify it correctly worked.
In your install folder, run :
docker-compose down
docker-compose pull
docker-compose up -d
OAuth is used to authenticate users, while Google Drive is used to store the user data such as item inventory, unit collection, espers, etc...
- Go to the Google API Console
- Click Create Credentials -> OAuth client ID -> Web Application
- Choose a Name: (e.g. ffbeEquip OAuth Client ID)
- Under Authorized JavaScript origins: https://localhost:3000
- Under Authorized Redirect URIs: https://localhost:3000/googleOAuthSuccess
- Click Create - A modal will appear with your client ID and secret, but exit the modal and click on the download icon to the right of the client ID to download as JSON.
- Open the
.config.json
file and paste the content of the downloaded file in thegoogle.oAuthConfiguration
value - Go to Dashboard -> Enable APIs. Search for Google Drive and enable it
Firebase is used to share information between users such as builder links to unit/party builds.
Links generated on your local server will only be valid for your local server. This section is probably NOT needed for a personal use local instance
- Go to the Firebase Console
- Create a project
- Choose a Project Name (e.g. ffbeEquip Dev)
- Disable Google Analytics and click Create Project
- Set up storage for that project
- Click Storage in the side menu -> get started
- Secure Rules -> next
- Choose nearest Cloud Storage location -> done
- Under Storage -> Rules -> Edit rules - replace with the following:
service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow write: if request.auth != null; allow read; } } }
- Add a Web App to your project
- Click Project Overview in the side menu
- Under "Get started by adding Firebase to your app", click the Web icon (</>)
- Under Register app, choose an app nickname (e.g. ffbeEquip Dev) - no need to set up hosting
- Under Add Firebase SDK ignore the code and click Continue to Console
- Generate a private key
- In Project Overview in the side menu, click the gear icon -> project settings
- Under Service accounts -> Generate new private key -> Generate Key
- Rename the JSON file to
firebase_config.json
and move it into the googleOAuth folder
CORS needs to be enabled so that anyone may read the Firebase files when given a builder link.
This section is only needed if you use firebase with your local instance.
- Go to https://console.cloud.google.com/home
- Click "Activate Google Cloud Shell" in the top right, this will open a terminal shell
- Create a file called
cors.json
and open it with an editor (e.g. vim, nano, etc...)touch cors.json nano cors.json
- Add the following code and save the file:
[ { "origin": ["https://localhost:3000"], "method": ["GET"], "maxAgeSeconds": 3600 } ]
- Run the following but replace [myproject] with the storage bucket URI (you can copy from the Firebase Storage page)
gsutil cors set cors.json gs:https://[myproject].appspot.com
Need help or have questions?
Looking for other ways to support FFBE Equip?
FFBE Equip Next is released under the ISC License.