#codingdays — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codingdays, aggregated by home.social.
-
Day 14
Registration Form Implementation
I've just finished implementing a registration form with validation and language switching using Next.js and React Hook Form. Now users can register with dynamic language support (English/Polish) and data validation (email, password, phone).Unfortunately, my account on Write.as has been temporarily blocked, so details about the implementation will be available once the account is unlocked. Stay tuned! 😊
https://write.tyolabs.com/?p=1
#programming #next_js #javascript #typescript #monorepo #saas #codingdays
-
Day 8
TL;DR: Yesterday I took a break. Today I’m back – and permissions are under control :)
Spent the day designing a fine-grained permission model.
I now support 96 distinct permissions across 8 modules, 4 CRUD operations, and 3 scopes: self, group, global.
Three system roles bind these into meaningful sets:
admin: full global access (32 permissions)
supervisor: read self + full group scope (32)
employee: read/update self only (16)That's 80 role-permission bindings total. Uff.
https://write.as/bmariusz/designing-a-scalable-permission-model
#sql #Microservices #monorepo #rbac #codingdays #programming #accessManagement
-
Day 7
✅ 24 test suites, 153 tests passing.Solid coverage across service and controller layers in my modular monorepo. Strict typing (TypeScript), full DTO validation, and realistic mocks across complex relations (TypeORM).
Next: fine-tuning error handling & exploring e2e strategies.
https://write.as/bmariusz/24-test-suites-153-tests-passing-scaling-confidence-with-every-assertion
#TypeScript #NestJS #Nextjs #InsuranceTech #Microservices #monorepo #rbac #codingdays #swagger #jwt #jwt_auth #programming
-
Day 6
TL;DR: Groups, memberships, hierarchy — all dynamic now.Released backend v0.3.0 🎉
✅ Users can belong to multiple groups with typed roles
✅ Groups can form hierarchical or overlapping structures
✅ Roles are normalized via reference typesBuilt with NestJS + TypeORM. Documented via Swagger.
https://write.as/bmariusz/building-a-flexible-group-structure-with-nestjs-and-typeorm
#TypeScript #NestJS #Nextjs #InsuranceTech #Microservices #monorepo #rbac #codingdays #swagger #jwt #jwt_auth #programming
-
Day 5
TL;DR: Continued work on backend security — role-based access is now fully wired up.✅ Got fine-grained role-based access control fully working today.
• Roles loaded from PostgreSQL
• Injected into JWT during login
• Validated via custom `@Roles()` + `RolesGuard`
• Authenticated via `@UseGuards(JwtAuthGuard)` globally
• Introduced `@Public()` decorator to bypass guards for public endpoints
• Swagger supports Bearer token for testingTook a while to get the role propagation into the token right — the key was enriching the `validateUser()` result, not just fetching data from DB.
Modular, clean, and no magic. Feels good. 👌
more on: https://write.as/bmariusz/continuation-securing-routes-with-jwt-and-role-based-access-control
#CloudNative #TypeScript #NestJS #Nextjs #InsuranceTech #Microservices #monorepo
#codingdays #swagger #jwt #jwt_auth #programming -
Day 4
TL;DR: Full Swagger docs + JWT auth with registration and login are live.
Today’s work focused on two key improvements.
1. Swagger documentation was extended across all API layers. DTOs, entities, and controllers were enriched with `@ApiTags`, `@ApiOperation`, `@ApiResponse`, and detailed `@ApiBody` annotations — including real-life examples for request bodies.
2. JWT-based authentication was implemented. A secure registration flow was added, with password hashing via bcrypt. A login endpoint now issues access tokens containing user ID, email, and roles. All logic is encapsulated using Passport strategies (local and JWT). The next step will be protecting routes with guards and role-based access.
#CloudNative #TypeScript #NestJS #Nextjs #InsuranceTech #Microservices #monorepo
#codingdays #swagger #jwt #jwt_auth #programming -
🚀 Explore top web development bootcamps in Utah! Whether you're starting your tech journey or shifting careers, find your perfect fit. #UtahTech #WebDevBootcamp #StartCoding #TechEducation #codingbootcamp #coding #codinglife #codingisfun #programming #javascript #coder #programmer #codingpics #css #html #computerscience #webdevelopment #pythonprogramming #programminglife #java #codingmemes #coders #developer #programmerlife #coderlife #code #programmingmemes #codingforkids #codingdays
-
🚀 Explore top web development bootcamps in Utah! Whether you're starting your tech journey or shifting careers, find your perfect fit. #UtahTech #WebDevBootcamp #StartCoding #TechEducation #codingbootcamp #coding #codinglife #codingisfun #programming #javascript #coder #programmer #codingpics #css #html #computerscience #webdevelopment #pythonprogramming #programminglife #java #codingmemes #coders #developer #programmerlife #coderlife #code #programmingmemes #codingforkids #codingdays
-
Join a community of aspiring web developers in Utah. Mentorship, support, and a collaborative learning environment await! #UtahCodingCommunity #WebDevTogether #SupportiveLearning #TechNetwork #codingbootcamp #coding #codinglife #codingisfun #programming #javascript #coder #python #programmer #codingpics #css #html #computerscience #webdevelopment #pythonprogramming #programminglife #java #codingmemes #coders #developer #programmerlife #coderlife #code #programmingmemes #codingforkids #codingdays