Initial commit: Tablet lending system with user-tablet many-to-many relationship
- Database schema: tablets, users, loans (junction table) - CLI app: minimal_app.py - Web apps: app.py (Flask), simple_app.py (http.server) - Features: loan management, search, user loans view, project notes - Git structure: CONTRIBUTING.md, .gitignore Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
commit
8a8d2f02fa
25 changed files with 2885 additions and 0 deletions
47
index.html
Normal file
47
index.html
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Tablet Management System</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; margin: 40px; }
|
||||
h1 { color: #4CAF50; }
|
||||
.info { background: #f0f0f0; padding: 20px; border-radius: 5px; }
|
||||
.command { background: #e0e0e0; padding: 10px; border-radius: 3px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Tablet Management System</h1>
|
||||
|
||||
<div class="info">
|
||||
<h2>Welcome to the Tablet Management System!</h2>
|
||||
<p>This system is running with a SQLite backend.</p>
|
||||
|
||||
<h3>Available Commands:</h3>
|
||||
<ul>
|
||||
<li><strong>Test the system:</strong> <code class="command">python3 test_app.py</code></li>
|
||||
<li><strong>Run interactive mode:</strong> <code class="command">python3 minimal_app.py</code></li>
|
||||
<li><strong>Check database:</strong> <code class="command">sqlite3 tablets.db</code></li>
|
||||
</ul>
|
||||
|
||||
<h3>Current Status:</h3>
|
||||
<p>✓ Database: tablets.db</p>
|
||||
<p>✓ Web server: Running on port 8080</p>
|
||||
<p>✓ System: Ready for use</p>
|
||||
</div>
|
||||
|
||||
<h3>Quick Test Results:</h3>
|
||||
<pre id="test-results">Running tests...</pre>
|
||||
|
||||
<script>
|
||||
// Simple test to show the system is working
|
||||
fetch('/test-db')
|
||||
.then(response => response.text())
|
||||
.then(data => {
|
||||
document.getElementById('test-results').textContent = data;
|
||||
})
|
||||
.catch(error => {
|
||||
document.getElementById('test-results').textContent = 'Database test: Error - ' + error;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue