Login.js This is login page designed in Reactjs and requirement is goto next page after next page after successful authentication, But database is created using postgreSQL and table name is 'user' which stores username and password. And development requirements are:
- frontend :reactjs
- backend : restify(nodejs)
- Database : postgreSQL So I want to know how i can connect postgreSQL table to this login page and how authenticate user?
class Login extends Component {
render() {
return (
<div>
<div >
<div >
<h1 >Login</h1>
<div >
<input type="text" placeholder="Username"/>
</div>
<div>
<input type="password" placeholder="Password"/>
</div>
<button type="submit">Log in</button>
</div>
</div>
</div>
)
}
}
export default Login