Skip to content

nico-martinucci/warbler

Repository files navigation

Warbler

A twitter clone with a Flask back end

Deployed at: https://warbler-nm.onrender.com/

Features

  • User registration/authentication/profile deletion
  • Posting, liking, and deleting messages
  • Following/unfollowing users
  • Chronological feed of followed-users' messages
  • 92% test coverage

Setting it up

  1. Create a virtual environment and install requirements:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
  1. Set up the database (PostgreSQL):
$ psql
=# CREATE DATABASE warbler;
(ctrl+D)
$ python3 seed.py
  1. Add a .env file with:
SECRET_KEY=(any secret key you want)
DATABASE_URL=postgresql:///warbler
  1. Run the server:
$ flask run -p 5001
  1. View at localhost:5001

Tech

  • Vanilla JS, Axios, Flask, SQLAlchemy, WTForms, bcrypt

// TODO

  • Fix background image formatting
  • Shift to responsive, SPA front-end framework
  • Write more tests