3/ 2๏ธโฃ Concert Table Enhancements
๐ธ Updated the Concerts table with:
image_url: For storing the cover of each concert.
is_active: Enables soft deletes by flagging data instead of removing it. Auditable & clean! โ
It helps keeping data history is ๐ for audits and analytics!
2/ Made sure every user can access and update only their data by:
- checkProfileOwnershipMiddleware: Ensures only the logged-in user accesses their profile.
- verifyTokenMiddleware: Validates JWT for secure access.
- roleCheckMiddleware: Restricts actions based on user roles. ๐ฏ
5/ How JWT works in the system:
User logs in or registers โ Server generates a JWT token.
Token is sent to the client (stored in localStorage or cookies).
On every request, the token is sent in the Authorization header.
The server validates the token to authenticate the user.๐
4/ For authentication, I'm using JWT (JSON Web Token).
Why JWT? ๐ค
Scalable: No need for server-side session storage.
Secure: Tokens are signed, ensuring integrity.
Efficient: Self-contained payload reduces server dependency.
3/n
Service Provider
Add, edit, and delete services.
Set availability for services (dates and time slots).
View and manage bookings for their services.
Access reports related to their services' performance.
2/n Iโm starting a new project GoConcert - an Event Booking Platform. From today onwards, Iโll be sharing daily progress updates on this journey. ๐
Roles in the Project:
There are 3 key roles on this platform:
My good friend @abhijithneil has compiled a set of resources about LLMs so you don't fear missed out by what happens in this rapidly evolving field.
Stay up to speed with the fast-moving field. .Give it a look ๐
https://t.co/kr9qXg8lsS
I'm working on a nextjs app and my @googlechrome browser works so weird. It's not hot-reloading and not even after I refresh. But it works fine on other browsers. Why ?
3/n The next aim is to build a post feature, where the authenticated users can write and share images. Also, Iโm building the frontend UI using Nextjs with shadcn UI components. Shadcn is a UI component library where you can add the components without installing anything.
15/n Ignition Interpreter: Ignition is a lightweight interpreter designed for faster execution of the code. The interpreter converts the AST into byte code. Byte code is a low-level representation of the code that is similar to machine code.
16/n Optimizing Compiler: Now the optimizing compiler takes the bytecode produced by the interpreter and generates an optimized machine code. The byte code is then optimized by applying various optimization techniques and produces more efficient code.