Can I create user profiles with wix code?

I am looking to have users sign up to my website when they have booked something, is it possible to have user profiles where they can log in? Thanks

Hello Sara

First you need to have a members area. you can add your members area:

export function book_click(event, $w) {
 wixUsers.promptLogin().then(()=>{
 // you can get the user information
    let user = wixUsers.currentUser;
    let isLoggedIn = user.loggedIn;
    let userRole = user.role;
    }).catch((err) => {
        let errorMsg = err;
     });
}

here’s how you can add onClick event or let the button like to the page:

  • if booking makes changes to the database i recommend using Hooks (for example you can use before insert hook if you insert an additional information to the database when booking).
    check this link to know more about hooks and how to use them: https://www.wix.com/code/reference/wix-data.Hooks.html

Good Luck!
Massa

Okay so what if i wanted all my artist to control and be able to post music and updates to their profile? for fans to see