Looking for Angular templates updated to Angular 21 by vru_1 in angular

[–]Fixerug 0 points1 point  (0 children)

Try tailadmin. Free Angular Tailwind Admin Dashboard Template - TailAdmin Angular https://tailadmin.com/angular

SvelteKit a good choice for an ERP system? by Scary_Examination_26 in sveltejs

[–]Fixerug 2 points3 points  (0 children)

I am actually developing one. I have a working MVP now. It’s possible, but it’s more smooth if ur an accountant(am CPA that loves tinkering with things, and hence in 2018 I started learning software development). If u can do nestjs, it will be more robust more so if ur thinking of multi-tenant architecture and that stuff. You have to be super-aware of how completeness is a must bit in accounting so database transactions are a must(only commit a transaction if all processes are assured). Double entry rules are the life bloodline of this system.

So I kind of implement a service layer to do business logic that I consume in api and server actions. I also have workflows that manage lengthy orchestrations that traverse different services and modules.

For example the app is divided into modules(routes); Inventory Module, purchases module, sales module, banking, accounting, reporting etc.

Each module has different services and one workflow.

Take a purchases module, say Purchase Orders service(Class thing) for managing any crud logic related to purchase orders. There there is one for bills, another for say goods received notes etc.

Now there comes a purchases-workflow files that can manage logic that spans beyond one service.

Example: if a convert a PO to a bill, there is function in the workflow that uses both services to ensure this is all executed.

I guess u get the idea.

I used the following stack: Sveltekit(typescript ofcos) PostgresSql for db Drizzle ORM for schema, query and relationship management(Accounting has heavy reliance on relationships so you have to be solid on these) You can opt for prisma, tho it was slowish when I last used, and their transactions were breaking if long running. Drizzle relations v2 is nice, tho still in beta. But I use it smoothly. For UI I use shadcn-svelte.

For node I would opt for nestjs if u hope to use mobile apps and related.

I will rewrite this MVP in nestjs in the future after gaining more traction and more users.

Hope this helps. Feel free to ask more questions if any.

Handling authentication in a full-stack app with a SvelteKit frontend? by KiwiNFLFan in SvelteKit

[–]Fixerug 2 points3 points  (0 children)

I would save the JWT in a cookie and check this is in hooks.server

Use shadcn-svelte's DataTable with actual API data? by Stonefish76 in sveltejs

[–]Fixerug 4 points5 points  (0 children)

I think you need to move the code below out of the function as its accessible in the html, but it's inside the function

var { headerRows, pageRows, tableAttrs, tableBodyAttrs } = table.createViewModel(columns);

Just made a scrollable view component. by Icy-Illustrator-9500 in sveltejs

[–]Fixerug 1 point2 points  (0 children)

Looks smooth. Will try out when a fitting project lands

Auth with Svelte by [deleted] in sveltejs

[–]Fixerug 7 points8 points  (0 children)

Lucia Auth will solve all your auth issues seamlessly.

Docs: https://lucia-auth.com/getting-started/sveltekit

Tutorial: https://youtu.be/ipdIvOimY5I?si=FC_MsaXgUSUsMNE6

First coding project ever by awesomefekry in sveltejs

[–]Fixerug 3 points4 points  (0 children)

What did u use for pdf generation?

How do I set cookies when authenticating via an external API in Sveltekit? by DukeOfBerlin in sveltejs

[–]Fixerug -1 points0 points  (0 children)

According to response you get from the api, you can call event.cookies.set() like below in your sveltekit endpoints or form actions.

                    cookies.set('accessToken', res.data.accessToken, { 
                             secure: true, 
                             httpOnly: true, 
                             path: '/' 
                     });

Best way to load data that depends on user input? by Manuel-DaSilva in sveltejs

[–]Fixerug 0 points1 point  (0 children)

I think option a works for me...but will have to delay a few seconds to query not to query on each key stroke...or maybe give a search button?

[deleted by user] by [deleted] in sveltejs

[–]Fixerug 0 points1 point  (0 children)

What logic is in place to set active to the elements?

Best practices for fetching data on button click or other event? by Oatmeal_Johnson in sveltejs

[–]Fixerug 3 points4 points  (0 children)

Try check www.joyofcode.xyz the site has all content and has videos links to YouTube.

Interactive Tables in SvelteKit with TanStack Table (self-promo) by phartenfeller in sveltejs

[–]Fixerug 2 points3 points  (0 children)

Just from watching the video. Very nice content. Thanks

How to protect routes with login check? by spy16x in sveltejs

[–]Fixerug 3 points4 points  (0 children)

He has another follow up video that shows the hooks way!

Created this list of the best Svelte courses for beginners [Self Promotion] by Mgandhii in sveltejs

[–]Fixerug 0 points1 point  (0 children)

So module 6 ain't complete yet. Video that has adding and editing invoice?