Giter VIP home page Giter VIP logo

ffbeequip's Introduction

Final Fantasy Brave Exvius Equipment Tool

GitHub repo size GitHub contributors GitHub

Welcome to FFBE Equip, 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://ffbeequip.com/

How to run locally

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.

Install docker and docker-compose

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)

Download FFBE Equip docker-compose.yml and .config.json.sample

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

Run docker-compose

In the folder where you saved the files, run docker-compose up -d

Open your browser at http://localhost:3000 to verify it correctly worked.

How to update your local server

In your install folder, run :

docker-compose down
docker-compose pull
docker-compose up -d

Install a fully featured local server

Obtain OAuth client credentials from the Google API Console

OAuth is used to authenticate users, while Google Drive is used to store the user data such as item inventory, unit collection, espers, etc...

  1. Go to the Google API Console
  2. Click Create Credentials -> OAuth client ID -> Web Application
  3. Choose a Name: (e.g. ffbeEquip OAuth Client ID)
  4. Under Authorized JavaScript origins: http://localhost:3000
  5. Under Authorized Redirect URIs: http://localhost:3000/googleOAuthSuccess
  6. 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.
  7. Open the .config.json file and paste the content of the downloaded file in the google.oAuthConfiguration value
  8. Go to Dashboard -> Enable APIs. Search for Google Drive and enable it

Obtain and set up a Firebase account (optional)

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

  1. Go to the Firebase Console
  2. Create a project
  3. Choose a Project Name (e.g. ffbeEquip Dev)
  4. Disable Google Analytics and click Create Project
  5. Set up storage for that project
    1. Click Storage in the side menu -> get started
    2. Secure Rules -> next
    3. Choose nearest Cloud Storage location -> done
    4. 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;
          }
        }
      }
      
  6. Add a Web App to your project
    1. Click Project Overview in the side menu
    2. Under "Get started by adding Firebase to your app", click the Web icon (</>)
    3. Under Register app, choose an app nickname (e.g. ffbeEquip Dev) - no need to set up hosting
    4. Under Add Firebase SDK ignore the code and click Continue to Console
  7. Generate a private key
    1. In Project Overview in the side menu, click the gear icon -> project settings
    2. Under Service accounts -> Generate new private key -> Generate Key
    3. Rename the JSON file to firebase_config.json and move it into the googleOAuth folder

Enable CORS (Cross Origin Resource Sharing)

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.

  1. Go to https://console.cloud.google.com/home
  2. Click "Activate Google Cloud Shell" in the top right, this will open a terminal shell
  3. Create a file called cors.json and open it with an editor (e.g. vim, nano, etc...)
    touch cors.json
    nano cors.json
  4. Add the following code and save the file:
    [
      {
        "origin": ["http://localhost:3000"],
        "method": ["GET"],
        "maxAgeSeconds": 3600
      }
    ]
  5. 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://[myproject].appspot.com

Connect

Need help or have questions?

Support FFBE Equip

Looking for other ways to support FFBE Equip?

License

FFBE Equip is released under the ISC License.

ffbeequip's People

Contributors

ackis avatar arnaud-dezandee avatar bdazzle avatar ckabalan avatar clhf avatar craigl281 avatar czamp avatar danguan avatar darwe-canine avatar daviderickson avatar indigo744 avatar jmakgh avatar joehakimrahme avatar kaldios avatar koakekuna avatar lyrgard avatar margorjon avatar mibaros avatar mikaelgreenbyte avatar montanhes avatar stuaroo avatar tedchennz avatar tomurderthelight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffbeequip's Issues

Typographical Errors

Minor in the grand scheme of things, but also really easy to fix ;)
When viewing the personal Inventory > Weapons the text shows:
Sorted by Type (Strenght)
When it should show:
Sorted by Type (Strength)
I'll add to this ticket if I find more examples.

Error with Olive unreleased build

Add "Death" status ailment

Would allow to filter Genji Shield and Safety bit defensively, and ability that cause death offensively

DEF being calculated wrong for Demon Rain.

I've fixed 3 Patriotic Recalls for demon rain and asked for a build for "Physical Damage" and the builder returned DEF of 587 when the correct amount should be close to 400.

maybe something with the doublehand logic might be affecting stats other than ATK?

Bug with innate partial dual wield and fixed weapon

URL Shortener for build sharing

There are some free URL shorteners with free API that could be integrated to the project, like bit.ly for example, or even google (that may be preferred since you're already using google API).

Thanks! ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.