Full stack Twitter clone built using Flask with an API, rendered with Jinja templates and styled with Bootstrap.
- Users can create an account and log in
- Ability to post messages, follow/unfollow other users, and like other messages
- Display top 100 most recent messages liked by current user
- Editable profile page
- User can check who they are following/being followed by,
- Flask/Jinja
python3 -m venv venv
source venv/bin/activate
After creating a virtual environment, install the requirements using
pip3 install -r requirements.txt
Access postgreSQL in your terminal
psql
Create the warbler database
CREATE DATABASE warbler;
Back in the virtual environment, run the seed file to seed the new database
python seed.py
Next, create an .env file to hold configuration and add these variables (secret key can be anything you want)
SECRET_KEY=anything
DATABASE_URL=postgresql:///warbler
To deploy warbler on a development server on port 5000, use flask run
Note: On some Macs, port 5000 may already have a process running on it, if you encounter this simply use port 5001
flask run -p 5001
Go to localhost:5000 or localhost:5001 in your browser of choice!
- Homescreen prepopulated with
- suggested users to follow
- messages relevant to the user's interests
