Coder Social home page Coder Social logo

contacts_info's Introduction

About

This app theoretically stores information about birthdays, addresses, and events for people in my life. It's inspired by Monica but even when done will have substantially fewer features.

Functionality

The app is essentially a list of Contact objects where each contact has Events and Milestones. The intended use is that as you interact with contacts, you add events recording those interactions. You can use milestones to record important dates like birthdays.

The index page shows upcoming milestones from today, as well as a couple recent past milestones. It also shows the contacts, sorted so that those with recorded recent events are furthest to the bottom. On the contact_details page you can see all the recorded information about a given contact.

Notifications

There's a provided script to grab notifications which you can run with python manage.py get_notifications_for_today. This will collect important dates and contacts where notify_after is set. Note that this script will not run automatically unless you configure it to do so. This involves:

  1. If you have gotify running, you need to provide a gotify_url in the config.py.

  2. You need to set python manage.py get_notifications_for_today to run periodically (e.g. once a day with cron). If you're using a virtual environment, use the path to the Python in that environment rather than python.

Install

The only dependency is django, so you can install that with

conda create -p env python=3.10 django

and then conda activate django. To run the app you'll need to make a database, which you can do with python manage.py migrate. You will also need a file at the path contacts_app/config.py which contains a dictionary with at least one key secret_key whose value is a random string, which is necessary to run the app.

After that the server runs with python manage.py runserver. See the django documentation for more details.

License

Even though this is AGPL licensed code, this project is mostly an excuse for me to learn django so I'm not really sure why you would want to copy it rather than build it from scratch using the tools django provides. I would not recommend it for production use, but you're welcome to copy it so long as you maintain the license.

contacts_info's People

Contributors

seth-rothschild 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.