ChrisVilches/poller

Make it work on Digital Ocean

Opened this issue · 1 comments

NestJS App working.

Remaining (some tasks are related to the UI):

  • Client doesn't work (both have to be HTTPS or HTTP in order to work).
  • Swagger executes the wrong URL (it removes part of the base URL).
  • WebSocket (socket.io) doesn't work even after deploying the UI.
  • Setup a way to build the UI so that the PUBLIC_URL (env variable) is set from console.
  • Also, production endpoints must be configurable from env variables (API and WS endpoints).
  • Update the README (both API and UI) to explain how to deploy correctly.
  • Fix some TODO items in the ecosystem.config.js file (Digital Ocean).
  • DHTML doesn't work (Puppeteer can't launch browser instance).
  • I got Puppeteer to work, but I had to add --no-sandbox, which can be a security hole. Also, I only added this code to the production source code, but it's not committed yet.
  • Some code may be uncommitted and written directly on the source code. So make sure everything is committed/pushed correctly (+ refactored, if necessary) to the repository.

App Endpoint should be dist/main not dist/src/main. The src folder should disappear, but it works this way.

I think the reason is that the scripts folder also gets compiled (it shouldn't).

(2023/01/29) DONE ✅