how to run a html file with python and mongodb for backend

315 views Asked by At

I am having a login.html for which I use python for validation purpose and I am using mongodb for storing the values. I have created my API using EVE REST Framework. I want to know how to run the html file so that i could validate the user. The python file is running on http://127.0.0.1:5000

Thanks in advance.

1

There are 1 answers

0
Mandar Vaze On

Have a look at this (search for flask login view) This should help you create /login endpoint. From your login.html, you need to call this URL with appropriate data (username and password is used in the example)