diangogav / EDOpro-server-ts

Welcome to Evolution Server, a versatile platform for creating Yu-Gi-Oh! matches, fully compatible with EDOPro, Koishi, and YGO Mobile! But this time, we focus on the scalability of the code, allowing for easy implementation of new features related to the data generated during the duels.
https://evolutionygo.com
13 stars 8 forks source link

Start server without Redis. #66

Closed diangogav closed 4 months ago

diangogav commented 8 months ago

Description

Actually, when the server starts, if a Redis connection is not established, the server throws an error. This happens because the await BanListMemoryRepository.backup(); code in src/index.ts loads all the banlist names to Redis for duel stats. We need the server to start with or without Redis.

Tasks

Acceptance Criteria

jjackdavis commented 7 months ago

Hello, I'm a CS student eager to make my first contributions on GitHub, and I'm interested in helping out with this project! I've encountered this issue following the README instructions. Could you provide guidance on how to run the server despite this issue?

diangogav commented 7 months ago

Hello, I'm a CS student eager to make my first contributions on GitHub, and I'm interested in helping out with this project! I've encountered this issue following the README instructions. Could you provide guidance on how to run the server despite this issue?

Hello @jjackdavis, thank you for your interest in our project!

If you have followed the README instructions, you only need to install Redis and run it on your machine. If you prefer not to install Redis, you can comment out line 21 await BanListMemoryRepository.backup(); in src/index.ts. Another option is to use the recently added docker-compose.yml file, which includes everything necessary to run the project with hot reload.

Soon, I'll publish the contribution guide with all the explanatory code. :raised_hands:

diegofcornejo commented 4 months ago

Update

A fix for this issue has been implemented and is available for review in pull request #91. Please review the PR to verify the solution and provide any feedback.

Thank you!

diangogav commented 4 months ago

Thanks @diegofcornejo . Merged