Giter Site home page Giter Site logo

friendshipchart's Introduction

Friendship Chart <3

I wanted to make a family tree of all my friends because I was confused about how we all knew each other. This is more or less what I came up with. It's a little flask app where you can type in your friends and how they know each other, and it'll make a little graph for you.

Screenshots

Add friends and see a list of how everyone knows each other Home page

View a "family tree" and search for the shortest path between two friends Graph page

Installation

  1. Install requirements in an environment with venv and pip, or with conda; activate your environment
  2. Add a secret key to your .env file, or just rename example.env --> .env and change the key inside.
  3. Create a local database with python models.py
  4. Run locally with python app.py or with flask via FLASK_APP=app FLASK_ENV=development flask run --port=5777
  5. Navigate to localhost:5777 to see your app

Deployment

This app is setup to be launched easily with fly.io - follow fly's instructions to use flyctl to create and deploy an app. Don't forget to create an attached postgres instance! You'll additionally need to set your secret key using flyctl secrets.

Automated Deploys

This app is also setup to deploy automatically to fly.io upon push to the main branch. To set this up, after launching the app, create a deployment API token with fly tokens create deploy and add it to your GitHub actions secrets. See this guide for more info. To skip this entirely, delete the .github/workflows/fly.yml file.

friendshipchart's People

Contributors

xanderbeberman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.