A simplified Twitter clone built with Flask and Tailwind CSS.
-
Make sure MySQL is installed and running
-
Initialize the database:
mysql -u root -p < setup.sqlNote: If your MySQL credentials are different, update them in
db.py
- Install Python dependencies:
pip install -r requirements.txt
-
Install Node.js dependencies:
npm install -
Build the CSS:
npm run build-css
-
Start the Flask server:
python main.py -
Open your browser and go to:
http://localhost:5000
During development, keep the Tailwind CSS build process running in a separate terminal:
npm run build-css
This will watch for changes to your CSS and HTML files and automatically rebuild the CSS file.