You are browsing as a guest. Sign up (or log in) to start making projects!

8h 19m 54s logged

Devlog - 10

So now that I’m continuing this project, I decided to use a admin dashboard template and adjust it according to my needs as the main thing I wanna show is my backend skills.

  • So first of all I was using bun in the backend, I switched to pnpm (personal preference)
  • Now I am using tsdown for building the express app.
  • There was some issue in extended Request type so I fixed it.
  • Also I was using a mongodb cluster free tier, now I am using a mongodb replica set on docker.
  • Also the global rate limiter was applied on everything not just /api/v1 so fixed that.

Also I renamed both the repos to something short -> Bms-Backend & Bms-Frontend.

Lets talk about the frontend that is on NextJs.

  • I am now using a template which includes a dashboard not fully complete for my need so I will be doing that, it had sentry, clerk and some other stuff, I removed that as It removed a cleanup script.
  • Added the login form and attached it with the backend.
  • I was previously using axios, but now I am using fetch and I am using a architecture called BFF (Backend for Frotend). So the client components call the nextjs backend and that backend calls the express Api whereas server component directly call the express Api so I created fetch wrappers for client calls and server calls.
  • Added a logo for the app.
  • Added proxy.ts and its logic
0
8

Comments 0

No comments yet. Be the first!