-
Clone the Repository
git clone https://github.com/leahmirch/DriveShare-Platform.git cd DriveShare-Platform -
Create a Virtual Environment
python -m venv venv source venv/bin/activate # On Mac/Linux venv\Scripts\activate # On Windows
-
Install Dependencies
pip install -r requirements.txt
-
Run the Application in a Terminal
python app.py
-
Access the Site Locally
- Open http://127.0.0.1:5000/ in a web browser.
- This project uses SQLite for simplicity.
- If needed, delete
database.dbto reset the database.
-
Using SQLite CLI:
- Open a terminal or command prompt and navigate to the project directory:
cd path/to/DriveShare-Platform - Start SQLite with the database file:
sqlite3 database.db
- List all tables:
.tables
- View table schema:
.schema users .schema cars
- Run a basic query:
SELECT * FROM users;
- Open a terminal or command prompt and navigate to the project directory:
-
(Optional) Use DB Browser for SQLite (GUI Tool):
- Download and install DB Browser for SQLite.
- Open
database.dbin the application. - Browse tables, execute queries, and inspect data visually.
- Insert Data:
INSERT INTO users (email, password, security_q1, security_q2, security_q3) VALUES ('test@example.com', 'securepass', 'Answer1', 'Answer2', 'Answer3');
- Update Data:
UPDATE users SET password='newpass' WHERE email='test@example.com';
- Delete Data:
DELETE FROM users WHERE email='test@example.com';