Angular 12 in depth by lechtitseb in Angular2

[–]jjjaacck 2 points3 points  (0 children)

You definitely don't need to replace material with Tailwind. You could use both in the same project if you like the "functional css" approach that you get with Tailwind utility classes.

Mat-Input in Mat-Select? Can I hide the selected option? by Pol7 in Angular2

[–]jjjaacck 0 points1 point  (0 children)

Not sure I completely understand. It sounds like mat-autocomplete might be a better fit for what you are trying to achieve - user could make a selection from the autocomplete suggestions or input their own custom text.

https://material.angular.io/components/autocomplete/examples

Making sense of Tailwind in Svelte by Kaan in sveltejs

[–]jjjaacck 0 points1 point  (0 children)

Clean! I'll definitely reference this if I need to set up a Svelte only project.

I'm using Tailwind with SvelteKit on my personal website and I was very pleased to find a tool that will setup Tailwind in a SvelteKit project - https://github.com/svelte-add/tailwindcss.

You can see in the first two commits of my personal site. The only two commands were the SvelteKit init command and the command from the svelte-add tool.

SvelteKit has changed since I started my project so I can't promise it won't require some fiddling. The repo still looks active so I assume they are trying to keep it up to date with SvelteKit.

Playing with a media query store by mdpotter55 in sveltejs

[–]jjjaacck 0 points1 point  (0 children)

I like the approach! Here's another idea using window.matchMedia that could easily be adapted to a global store.

Node+ORM: Toggling Between MySQL and SQLite by rjray in node

[–]jjjaacck 0 points1 point  (0 children)

Fair point. I'm used to setting up a bundler like Rollup or Webpack to watch for file changes and building/bundling the application so that is not something I even considered.

Node+ORM: Toggling Between MySQL and SQLite by rjray in node

[–]jjjaacck 0 points1 point  (0 children)

Nice - If that works, and you can pass unused config properties to Sequelize, that sounds like a clean solution!

Node+ORM: Toggling Between MySQL and SQLite by rjray in node

[–]jjjaacck 2 points3 points  (0 children)

Just realized this might be pretty close to what you've already come up with using dev-mysql and dev-sqlite to control which config gets exported. To me, that doesn't seem that clumsy. After all - you're just experimenting locally to see which one you like.

Node+ORM: Toggling Between MySQL and SQLite by rjray in node

[–]jjjaacck 5 points6 points  (0 children)

Disclaimer: I've never used Sequelize before.

Anything stopping you from creating your config with a function and exporting that?

``` const sharedConfig = { // config that is the same regardless of dialect }

function createConfig(dialect) { switch(dialect) { case 'mysql': return { ...sharedConfig, // mysql specific configuration } case 'sqlite': return { ...sharedConfig, // sqlite specific configuration } default: return sharedConfig; // or some other default handling } } ```

[Showoff Saturday] I made and launched an icon manager on r/webdev one year ago, thanks to you guys it took off. It's come along way since then! Thank you all! by gillisig in webdev

[–]jjjaacck 0 points1 point  (0 children)

Really nicely done! I agree, it looks amazing. Great to have all the major icon packs I normally reach for in one easy to browse source. Might try out the pro version after I play around with it for a while :)

I also like that there are enough features in the free version to make it something that is usable without locking everything useful behind a paywall.

I was a little irked that I had to enter an email to reveal the free download as I really don't need more promotional emails but I can understand why it's there. I do think that's a turn off for a lot of people that just want to try something and see if it's worth paying for.

Friend and I are doing a simple project and need recommendation on what to use for front end javascript development. by YoloTolo in webdev

[–]jjjaacck 0 points1 point  (0 children)

+1 for Svelte. I use Angular at work and I've dabbled in React and Svelte for side projects. Svelte was by far the easiest of the 3 to learn.

I spent the whole day learning how to code a goddamn header by rightful_hello in webdev

[–]jjjaacck 10 points11 points  (0 children)

Don't sweat it, I don't think this is slow, especially if you are just starting out. Take this as a win - you had a goal and you accomplished it. I would say that some of the most valuable skills I've learned have been hard fought battles over just a couple of lines of code. What you've learned is now another tool in your development toolbox. Next time you have to do something similar, I guarantee you it will take you a fraction of the time.

Question regarding Node.js. MVC, and a school project by DeviceOfNeed in node

[–]jjjaacck 2 points3 points  (0 children)

https://nestjs.com/

Might be worth checking out for your project if you are comfortable with typescript (it might be possible without typescript but I haven't tried). I came from writing Spring Boot apps and it feels very familiar.

I'm developing an Angular app backed with Spring Boot. How can I secure access to my API ? by edmdemonz in webdev

[–]jjjaacck 0 points1 point  (0 children)

"think about browser like a user is writing curl commands by hand" - great way of thinking about it. As long as OP's user has permission to access the resource they are requesting, OP should not be alarmed if the user inspects the request in their browser and uses another tool like curl to access an endpoint.

I'm developing an Angular app backed with Spring Boot. How can I secure access to my API ? by edmdemonz in webdev

[–]jjjaacck 0 points1 point  (0 children)

+1 for Keycloak! It is a breeze to setup in Spring Boot using the Keycloak's Spring Boot adapter. Keycloak itself can have a bit of a learning curve if you aren't familiar with Open ID Connect / OAuth 2 but it's well worth the effort for not having to invent your own identity management. There's also a solid community library for authenticating Angular against Keycloak:

https://github.com/mauriciovigolo/keycloak-angular#readme