cd /home/anthony/wikip.co/alchemy-app
pip install -r requirements.txtpython -m import.import_articles --init --db health.dbThis creates the database schema. You should see: "Database schema initialized"
python -m import.import_articles --db health.db --articles ../site/source/_posts/Natural\ HealingThis will:
- Scan all markdown files in the Natural Healing directory
- Parse each article
- Extract citations, healing properties, treatments, etc.
- Import everything into the database
You should see progress messages like:
Found X markdown files to import
Processing: article-name.md (Natural Healing/Category)
✓ Imported: Article Title
python run.pyOr:
export FLASK_APP=app
flask runThe app will start on http://localhost:5000 (or http://127.0.0.1:5000)
- Open
http://localhost:5000in your browser - Click "Articles" in the navigation
- You should see a list of imported articles
- Click on any article to view details
- Click "Search" in the navigation
- Enter a search term (e.g., "garlic", "antioxidant")
- View search results
- Click "Alchemy" in the navigation
- Use the search/filter to find articles
- Click "Add to Protocol" on some items
- Enter a protocol name and description
- Click "Create Protocol"
- Click "Protocols" in the navigation
- View your created protocols
- Click on a protocol to see details and combined properties
- Try editing or deleting a user-created protocol
- Open any article detail page
- Look for citation references like
[1]in the content - Click on a citation reference - it should scroll to the citation
- Check the citations section at the bottom
- Make sure the path to Natural Healing directory is correct
- Check that markdown files are readable
- Look for error messages in the import output
- If database doesn't exist, run
--initfirst - Check file permissions on the database file
- Try deleting
health.dband re-initializing
- Make sure all dependencies are installed:
pip install -r requirements.txt - Check that the database file exists
- Look at the Flask console output for error messages
- Make sure you're accessing the app through the Flask server (not directly opening HTML files)
- Check browser console for JavaScript errors
- Database initialized successfully
- Articles imported (check count in import output)
- Home page loads
- Articles page shows list of articles
- Article detail page displays content
- Search returns results
- Category browsing works
- Alchemy builder allows item selection
- Protocol creation works
- Protocol detail shows combined properties
- Citations are linked and clickable
- Protocol editing works
- Protocol deletion works