Skip to content

gordonball/warbler

Repository files navigation

Warbler

Full stack Twitter clone built using Flask with an API, rendered with Jinja templates and styled with Bootstrap.

warbler-front

Features

  • 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,

Tech Stack

  • Flask/Jinja

Installation

Create a virtual environment in the parent directory

python3 -m venv venv

source venv/bin/activate

After creating a virtual environment, install the requirements using

pip3 install -r requirements.txt

Set up database and .env file

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

Deploy

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!

Future Features

  • Homescreen prepopulated with
    • suggested users to follow
    • messages relevant to the user's interests

About

Twitter clone using flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •