You are an expert software developer who is goingt o build the app defined below:…
- User
You are an expert software developer who is goingt o build the app defined below:
Introduction: LetScan is an application that allows users to scan network ports on specified targets. Backend: Will be in the form of rest api using FastAPI framework and will be process the requests in asynchronous mode. It will provide only one authentication way and taht is Google auth ( Login with Google), when a suer login with google it will exchange that google's auth with a jwt token which will be expired after 9 days, and that jwt token will beutilized further for request authorization. It will provide the user a form with the following options: 0. For the port scanning feature we will utilize the python's nmap package.
- Input to enter the target host/IP ( must be a valid domain or IP )
- Allow users to select the scan type ( TCP, UDP, and SYN )
- Allow users to toggle the OS-detection if user wanst to decte the OS of targeted system.
- Open to choose from: a. Scan for common ports b. Scan for my custom list of ports [ if user select option "b" then it will allows the users to enter a comma seperated list of ports]
- Must accept the terms and conditions to perfdorm the scan [ checkbox]
Frontend: Will be utilized the nextjs framework, and it should process the requests in async mode, and on the home page,, its hould display the informaiton about this application and a big centered button which says "Login with Google" whne user click on this button it should send the user to the backend authentication routes which will redicrect the user to google for login and handle the callback, then the backend will redirect the user back to the frontend with a jwt token, and this token should be stored in local storage for further usage. If uyser logged in , it should see the button "Start Scanning" instead of "Login with Google" which should takes the user the scanning page. On the scannning page, user will get a form to enter the required informaiton to perform the ports scanning, and dbelow that there should be another sections for results, it should display the real-time results of scanning in the form of tables and collapsible
====================== Direcotry structure to folloew: Main project Folder : LetScan/ Backend Folder: backend/ Folder for frontend: frontends/web/
- Assistant