Closed KnightChaser closed 3 weeks ago
About the order placing UI matters, the UI has been fully refurbished again.
About the database, this system for two types of databases;
# database_session.py
import os
import redis
from database import SessionLocal
# Return the SQLite3 database session
def get_sqlite3_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
# Return the Redis database session
def get_redis_db():
# Check if the current environment is in Docker
is_docker = os.getenv("IS_IN_KCX_BACKEND_DOCKER", "false").lower() == "true"
redis_host = "db-redis" if is_docker else "localhost"
os.environ["REDIS_HOST"] = redis_host
redis_port = int(os.getenv("REDIS_PORT", 6379))
redis_database = int(os.getenv("REDIS_DB", 0))
redis_client = redis.Redis(host=redis_host,
port=redis_port,
db=redis_database)
return redis_client
For code reusability and structural consistency, there were major changes that the redis client objects are obtained by the getter function. However, I couldn't find the advantages of using generators like SQLite3, so I decided to return the redis_client
object directly, which is more convenient.
Looks like Redis is not backed up in the docker environment since reloading docker means rebuilding the entire system. Some measures are needed....
(Some useful or fun statistics visited frequently are also stored in redis for performance)
About the order placing UI matters, the UI has been fully refurbished again.
- Quick select of 20%/40%/60%/80%/100%(ALL IN) via click
- Freely adjustable slider (actually, 1%)
- Number formatting(Limit the number of decimal points, comma...) and right-align
Bugfix; there were some issues about inconsistencies about the slider
- When the user is trying to buy the crypto, the percentage should be considered by how much money(fiat currency) that the user has, and the slider should be synchronized accordingly.
- When the user is trying to sell the crypto, the percentage should be considered by how much cryptocurrencies(cryptos) that the user has, and the slider should be synchronized accordingly.
When the user changes the button, the slider bar should be reset. When the user moves an asset to another asset, the availability of information should vary. However, the current status is not responsive to this issue.
The issue has been (initially) resolved in the Release 2.1.0. This issue will be closed if there is no more further issues for few days later.
Image upload feature isn't working. It seems that any new image from any source is overlapping the previous one and the images are managed as one in bug. What the actual fuck
Here is some crazy picture
No further issues confirmed. Issue closed.
Issue Summary
This issue addresses several problems and feature requests related to the Docker setup, code imports, and enhancements for user experience and platform statistics. Let's fix the issues step by step... for the stable release I dream.
Detailed Description
Persistent Storage for Databases in Docker:
docker-compose.yml
includes SQLite3 and Redis, but lacks volume settings for these services. This results in the inability to store database files permanently, leading to data loss upon container restart.docker-compose.yml
to ensure persistent storage of database files.Import Typing Error in
/src/route/exchange/main.svelte
:CenterPanel
should be changed tocenterPanel
. This causes an error when running in Docker./src/route/exchange/main.svelte
to use the appropriate case.Profile Picture Customization:
User Ranking Feature:
Total Transactions Display:
Toggle Setting for Enabling/Disabling Balance Modifications:
Deployment configuration
API_URL
islocalhost
toYOUR_AWS_PUBLIC_IP
readme.MD
or writing a script to automatically apply by referring.env
or other environmental settings attached to this project.\Crypto sell issues
Steps to Reproduce
For Persistent Storage Issue:
docker-compose.yml
.For Import Typing Error:
Suggested Improvements
Docker Configuration:
Correcting Import in Svelte File:
Additional Notes