Skip to content

Commit 57d1ddd

Browse files
authored
Update README.md
1 parent f2973ec commit 57d1ddd

File tree

1 file changed

+27
-32
lines changed

1 file changed

+27
-32
lines changed

Diff for: AutomationScripts/Apple Store/README.md

+27-32
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,40 @@
1-
# Package/Script Name: Word Transfer
1+
# Package/Script Name: Apple Store
22

33
## Short description of package/script
44

5-
- For transfer of words between computers or between a windows or VM in a same computer
6-
- It imports the library socket
5+
- A full stack website for buying and selling items
6+
- It is implemented using Flask and SqlAlchemy
77

88
## Setup instructions
99

10-
- Need to switch off the local firewall in both the pcs
11-
- To run the server in a VM or in a different computer and the client in the different computer and change the IP in the client folder based on the IP of the VM/Computer.
10+
- Need to install both SqlAlchemy and Flask through the terminal
11+
- Then use set FLASK_APP=run
12+
- flask run
1213

1314
## Detailed explanation of script, if needed
14-
15-
A. Steps to create the socket program on word transfer from client to server with Ubuntu on VM as the server:
16-
- First created a python file on ubuntu which contains a list of words
17-
- Imported the words file while creating the server file on Ubuntu
18-
- While creating the server file on Ubuntu(word_transfer_server):
19-
a. First created a socket
20-
b. Took an arbitary port number greater than 1023(in this case it is 3603) for the transfer of infromation
21-
c. Binded the ports of the client and server
22-
d. Listened to the client for information
23-
e. Received the word from the client
24-
f. Checked if the word was present in the predefined list
25-
g. Passed back the result of the search to the client
26-
h. Ended the connection
27-
- While creating the client file on Windows(word_transfer_client):
28-
a. First created a socket
29-
b. Took the same port number as in the server(in this case 3603)
30-
c. Looked for the ip address in the Ubuntu on VM
31-
d. Entered the ip address for connecting with the server
32-
e. Took the word from the client
33-
f. Sent the word to check if it's present in the list
34-
g. Received the search result from the server
35-
h. Displayed it to the client
36-
i. Ended the connection
15+
- The script is divided into many parts
16+
- First is the market package
17+
- It contains the python files __init__, forms, models and routes
18+
- The __init__ file initializes the databse, the login users and password bcrypt
19+
- The forms is used for creating the user login, registration, buying and selling forms
20+
- The models is used for creating the classes of tables present in the databse, password and email verification and the budget
21+
- The routes is used for routing the user to different pages
22+
- It also contains various html files like base, home, login, market, register and a directory containing the html files items_modals and owned_items_modals
23+
- The base file contains the base proforma of the website, which the rest of the webpages extends
24+
- The home file is used for designing the home page
25+
- The login file is used for designing the login page
26+
- The register file is used for designing the register page
27+
- The market file is used for designing the market page
28+
- The item_modals and owned_items_modals contains the design of the buying and selling part
29+
- The run file is used to run the entire program
3730

3831
## Output
39-
40-
<img src="https://github.com/kumarjeetray/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Word%20Transfer/Images/word_transfer_client_ss_1.jpg"/>
41-
<img src="https://github.com/kumarjeetray/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Word%20Transfer/Images/word_transfer_client_ss_2.jpg"/>
42-
<img src="https://github.com/kumarjeetray/Awesome_Python_Scripts/blob/main/BasicPythonScripts/Word%20Transfer/Images/word_transfer_server_ss.jpg"/>
32+
![Image](Images/front_page.jpg)
33+
![Image](Images/register_page.jpg)
34+
![Image](Images/login_page.jpg)
35+
![Image](Images/market_page.jpg)
36+
![Image](Images/purchase_item.jpg)
37+
![Image](Images/transaction.jpg)
4338
## Author(s)
4439

4540
Kumarjeet Ray

0 commit comments

Comments
 (0)