GithubHelp home page GithubHelp logo

Comments (12)

stevepolitodesign avatar stevepolitodesign commented on August 31, 2024 1

@joemasilotti I recommend we enable devise :confirmable from the start to limit SPAM. What do you think?

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

Definitely! Good call.

from railsdevs.com.

caseyjenks avatar caseyjenks commented on August 31, 2024

@joemasilotti What are your thoughts on having a User model where all of the devise fields live, and then having Developer and Business(probably a better name for this class) subclasses which inherit from and belong_to User. Otherwise, we'll end up with 2 devise models in the app.

from railsdevs.com.

fetijashari avatar fetijashari commented on August 31, 2024

Since here we are talking different type of roles and user and maybe different subscriptions- I'd suggest we Implement User and Accounts. Simply said, this will enable the user to have different accounts (and within those accounts to have different teams that he can invite) / different subscriptions for those accounts. This will solve one part: Business Accounts as for developers - they will be just a normal users for begining.

What do you guys think ?

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

I was hoping we wouldn't need accounts vs. users just yet, but it's always easier to build them now vs. later. So if someone throws together a PR with both built in, even at its simplest level (sign up, switching, etc.) I'm on board with that approach.

I also agree with Developer and Business (or other name) belonging to a User. But why would they also inherit from User? Can you explain that a little bit?

from railsdevs.com.

nsoseka avatar nsoseka commented on August 31, 2024

I think having one User model and then defining roles will fit perfectly for this scenario. Having 2 models looks a little bit like overkill for this. If the approach of using a single User model is good, I can run a PR for that.

Then again, I also think its best to setup all devise modules except omniauth in the migration file just incase we decide to use any for letter. We must not use it immediately but its good to have it now and as someone pointed above `confirmable is great to avoid spam.

Last question. Should I shoot this out with the free tailwindcss sign up?

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

Ideally, I want to see Accounts / Users built at the same time. But if someone submits a PR that only does User authentication that's a fine place to start.

I strongly prefer to keep code we aren't using out of the codebase, even if we "might" use it in the future. So for the migration, only adding what will be used for the active PR.

As for design, feel free to use Tailwind UI if you have a license. Or leave it undesigned and someone else can style it later.

from railsdevs.com.

Tonksthebear avatar Tonksthebear commented on August 31, 2024

Ideally, I want to see Accounts / Users built at the same time. But if someone submits a PR that only does User authentication that's a fine place to start.

I strongly prefer to keep code we aren't using out of the codebase, even if we "might" use it in the future. So for the migration, only adding what will be used for the active PR.

As for design, feel free to use Tailwind UI if you have a license. Or leave it undesigned and someone else can style it later.

Whoa, TailwindUI can be used in an open source project? I assumed public code would break the license, but it definitely seems to imply you can use it in projects such as this...

Do you want to manage rolls in a column directly in the model, or use something like rolify?

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

Yep!

You can:

Use the Components to create End Products that are open source and freely available to End Users.

from railsdevs.com.

fetijashari avatar fetijashari commented on August 31, 2024

Is anyone working on this ? @joemasilotti do you know ?

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

Not that I'm aware of!

from railsdevs.com.

joemasilotti avatar joemasilotti commented on August 31, 2024

I ended up pulling the trigger on this since it was blocking a few other issues/PRs.

The current implementation is a basic devise installation with a User model. Accounts and roles can come later.

from railsdevs.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.