Code Monkey home page Code Monkey logo

beyond-ys-editor's Introduction

Beyond Ys logo

Beyond Ys Editor

Content editor for Beyond Ys.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/franz-dc/beyond-ys.git
  2. Install dependencies:

    npm i
    # or
    yarn
  3. Create .env.local by copying .env and replace the values with your own:

    cp .env .env.local
  4. Set up your Firebase project or Firebase Local Emulator Suite.

    a. Firebase Project

    1. Make sure that NEXT_PUBLIC_USE_FIREBASE_EMULATOR is set to false in .env.local.

    2. Optional: Set USE_EMPTY_STATIC_PATHS to true in .env.local. This is recommended if you're using a free Firebase plan to avoid exceeding the free quota.

    3. Create a service account key and download the generated JSON file.

    4. Update the values of FIREBASE_ADMIN_PRIVATE_KEY and FIREBASE_ADMIN_CLIENT_EMAIL in .env.local with the values from the JSON file.

    5. Make your storage bucket publicly readable. For more information, see this.

    b. Firebase Local Emulator Suite

    1. Make sure that NEXT_PUBLIC_USE_FIREBASE_EMULATOR is set to true in .env.local.

    2. Enable the following services in your Firebase project:

      • Authentication
      • Firestore
      • Storage
    3. Update Firestore emulator variables in .env.local if necessary. This is only needed if you're using a different host or port.

    4. Run the following commands on your local Firebase directory to start the emulators:

      First time:

      firebase emulators:start --export-on-exit=./emulator-data

      Subsequent times:

      firebase emulators:start --import=./emulator-data --export-on-exit=./emulator-data

      This is needed to persist the data in the emulator and avoid having to reseed the database every time you restart the emulator.

  5. Run this command to seed the database with sample data*:

    npm run seed
    # or
    yarn seed
  6. Run the development server:

    npm run dev
    # or
    yarn dev
  7. Open localhost:9001 on your browser.

* Only canon Ys games are seeded (with some of their characters, music, and staff).

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure they're properly tested.
  4. Commit your changes and push them to your forked repository.
  5. Submit a pull request, explaining the changes you've made.

License

This project is licensed under the MIT License.

beyond-ys-editor's People

Contributors

franz-dc avatar

Watchers

 avatar

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.