Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.17 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.17 KB

butterfly

Overview

A web application for sharing images and messages with your friends.

You can also like, bookmark and comments on posts.

Getting Started

To get started, clone the repo:

  1. Clone the project repo:
git clone https://github.com/twyle/butterfly.git
  1. Navigate to the project directory, then create the project secrets:
cd butterfly
touch ./services/app/.env

And then paste the following:

FLASK_DEBUG=True
FLASK_ENV=development
FLASK_APP=manage.py 
SECRET_KEY=secret-key 
POSTGRES_HOST=localhost
POSTGRES_USER=lyle
POSTGRES_PASSWORD=lyle
POSTGRES_DB=lyle
POSTGRES_PORT=5432
  1. Start the database server:
docker-compose -f services/database/docker-compose up
  1. Create and seed the database:
python services/app/manage.py create_db
python services/app/manage.py seed_db
  1. Start the application:
python services/app/manage.py run
  1. Navigate to http://127.0.0.1:5000/ to see the application.

Author ✒️