Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

WIP: Backend Refactor#1

Draft
James-Burgess wants to merge 2 commits intoChaitanyaLKulkarni:mainfrom
James-Burgess:main
Draft

WIP: Backend Refactor#1
James-Burgess wants to merge 2 commits intoChaitanyaLKulkarni:mainfrom
James-Burgess:main

Conversation

@James-Burgess
Copy link
Copy Markdown

Started on a refactor of the bot to make it easier on adding features.

Mostly worked on splitting up the files and removing complexity.
I started writing my own bot in py but wanted to share what I had with you incase you wanted to continue my work.

Change Overview

  • Update npm lock file
  • Split api files up into logical modules
    • Use [routes -> controller -> model + actions] flow
  • Added dockerfiles and docker compose scripts
    • Including mongodb for local dev
    • Live reload working on dockerfiles
    • Still need to add configs for prod deploy
  • seporate bot and api logic
  • Create CoC module to share logic between api and bot
  • removed un-needed commands from bot
  • Start bot in a thread

- Split api files up into logical modules
  - Use [routes -> cotroller -> model + actions] flow
- Added dockerfiles and docker compose scripts
  - Including mongodb for local dev
  - Live reload working on dockerfiles
  - Still need to add configs for prod deploy
- seporate bot and api logic
- Create CoC module to share logic between api and bot
- removed un-needed commands from bot
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant