create a login and registration form using angularjs and postgreSQL

I am a noobie and want to do this simple application. Please help me.
How can I connect my angularjs application to PostgreSQL to store user registration details and use it again to match the login details?

Source: AngularJS