A simple website for storing and retrieving text data.
The website utilizes the fetch API to interact with a Flask API hosted on Render. The Flask API is responsible for communicating with the Google Firebase Realtime Database to retrieve and update data.
The clipboard website provides a convenient way to store and access text data. It leverages the power of a Flask API hosted on Render and integrates with the Google Firebase Realtime Database for seamless data management.
- Store and retrieve text data easily.
- Seamless integration with Google Firebase Realtime Database.
- Fast and responsive user interface.
Before getting started, make sure you have the following:
- A Firebase project set up with a Realtime Database.
- The Firebase Admin SDK service account key JSON file.
- Python installed on your local machine.
To set up the clipboard website locally, follow these steps:
- Fork this repository to your github account.
- Clone the forked repository to your local machine.
- Copy the Firebase Admin SDK service account key JSON file to the project directory.
- Install the required Python packages by running the following command:
pip install -r requirements.txt
- Open the
main.py
file in a text editor. - Replace the
'databaseURL'
value in theinitialize_app
function with your Firebase Realtime Database URL. - Run the Flask application by executing the following command:
python main.py
- Deploy the flask application to Render.
- Open
assets/script.js
andassets/script.js
files in a text editor. - Replace the
URL
to the url that the flask api is deployed to by Render. - Deploy your website using github pages or any other hosting service.
That's it!
- Access the clipboard website by navigating to the appropriate URL.
- Use the provided text input field to enter your desired text data.
- Click the "Add" button to store the text data in the database.
- Existing clipboards are automatically retrived from the database.
- The retrieved text data will be displayed on the website.
Contributions to the clipboard project are welcome! If you would like to contribute, please follow these steps:
- Raise an issue over at issues tab and report to the developer
- Fork the repository and create a new branch for your feature or bug fix.
- Commit your changes with descriptive commit messages.
- Push your branch to your forked repository.
- Submit a pull request, detailing your changes and their benefits.
This project is licensed under the MIT License. See the LICENSE file for more information.