Skip to content

itmo-wad/EmmanuelKpadedji-hw2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmmanuelKpadedji-hw2

In this project I implemented a basic web feature for web application with data stored in MongoDB.

Technologies used : HTML, CSS, Flask, and MongoDB

Project step :

  • Create MongoDB Database :

    Set up a MongoDB database to store user credentials (login and password)
    

    wad2 1

  • Render Authentication Form :

    - Create a new HTML template to render the authentication form.
    - Implement a route in Flask (/login) to render this template when the user accesses the root URL (http://localhost:5000/).
    

    wad2 3

  • Handle Authentication:

    • Implementitation of logic in the /login route to handle form submission.
    • Retrieve the entered username and password from the form.
    • Querying the MongoDB collection to find a user with the provided username and Verify the password.
  • Show Profile Page:

    • Creation of profile.html for authenticated user only.
    • Implementation of a route (/profile) to render this template.

    wad2 4

For unauthenticated user :

wad2 5

wad2 6

HOW To RUN ?

1- install flask (pip install flask)

2- install MongoDB and create a database name wadhw2 and collection : users

3- insert data (name and password in the database)

2- clone the repository of the project

3- navigate to the repository and run the command : python3 app.py

4- Reach the website on http://localhost:5000

Contributor

KPADEDJI Emmanuel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages