Code Monkey home page Code Monkey logo

daily_wisdom's Introduction

Daily Wisdom

Get your wisdom here! This was a short personal project I had to send myself messages such as sun tsu, the tao of programming, etc to my slack channel daily. I felt that these pieces of literature were best served like a cup of coffee, daily and gradually, rather than all at once.

Honestly, this repo is currently scoped mainly to just work ( and it does ) for my personal use. If this is interesting to others, I would be happy to build out a more production version of this.

State: Works, but made for personal use. You can extend this and generalize it, but not built for a larger audience.

Usage:

To start with python:

python -m pip install -r requirements.txt
cd app && python main.py

To start with docker: docker-compose up -d>

Environment Variables

  • DATAFILE: Should point to the files.json file. It's relative to where you invoke the script.

Swagger Docs

You can go to /docs for swagger docs. Ex. http://127.0.0.1:5000/docs

/{key} api

You can extend and add your own namespaces. For example, extend this into your own books etc. It will be keyed based upon the files.json file.

The content should be in yml format. See sun tsu for more details.

Ways to integrate this into slack

I have daily messages sent to slack via a scheduler.

But you can customize this to whatever you want. As a command:

or many others.

See https://api.slack.com/messaging/webhooks for documentation on how to use incoming web hooks.

Architecture

super simple architecture

graph TD
  app
  subgraph files
    suntsu[Sun Tsu]
    tao[Tao]
    otherfiles[Other Files]
  end
  app --> suntsu
  app --> tao
  app --> otherfiles
Loading

Contributions

I'd welcome contributions! PR's, Issues, etc!

daily_wisdom's People

Contributors

andorsk avatar

Stargazers

 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.