This is a simple web application that provides a scratchpad for users to edit and save content. The application is built using Python and Flask for the backend, and HTML and JavaScript for the frontend.
-
Clone the repository:
git clone https://github.com/applepwc/scratchpad-repo.git cd scratchpad-repo
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
static
directory and add thescript.js
file:mkdir static mv script.js static/
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to
http://127.0.0.1:5000/
to access the scratchpad.
- Open the web application in your browser.
- Edit the content in the textarea provided.
- Click the "Save" button to save the content to a text file.
- A message will be displayed indicating that the content has been saved successfully.
The following dependencies are required to run the Flask application:
- Flask==2.0.1