hey-adora / artcord

Home Page:https://artcord.uk.to/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making the code readable.

hey-adora opened this issue · comments

commented

Code cleanup is needed a lot right now.
If code doesn't make sense in a lot of places, don't worry, its not just you, it doesn't make sense to me either. So before adding more features and more complexity. My goal right now is to refine what we have now and make the code simpler, so it would be easier to move forward.

  • Fix user profile gallery not loading (Using the new WsSender or making something better).
  • Add unique string id field to each model using ObjectId::new().to_hex() and inspect all of the queries logic.
  • Move all queries from server module to database module
  • Separate each query to its own model query module instead of single endless unreadable file (?)
  • Create default env variables if .env is not found.
  • Create docker-compose for the whole repo, not just mongodb.
  • Replace actix websocket sync actor mess to some new async websocket library.

If anyone contributes or has questions, either write here or on discord at hey__adora
I will try to complete this list in order and check the boxes when its complete.