GithubHelp home page GithubHelp logo

birthdayreminder's Introduction

Birthdayreminder

In the choir where I sing we have a list of all singers, together with their birthdays. Sometimes we forget to sing someone the birthday song.

In this little project I want to set up a small database and have a restful access to the members and their birthdays.

REST

/members/ List of all members with birthdays, sort by first name /birthdays List of all members with birthdays, sort by date /birthdays/last?count=12 List of 12 birthdays, from now back in time

Requirements

  1. Get a list of all members sort by first or surname.
  2. Get a list of all members sort by birthday, starting jan 1st.
  3. Get a list of all members having birthday between now and 2 weeks ago
  4. Add a member with birthday
  5. Update / correct member or birthday

Notes

flask

After creating the flask-install there was this message:

./manage.py runserver

For safety's sake, this defaults to a production config with DEBUG turned off.
You can change the config by setting the APP_CONFIG
environment variable to "development" in your shell:
export APP_CONFIG=development

Flask extensions being used

  • flask-wtf: Flask-WTF is for web forms
  • flask-sqlalchemy: a SQL ORM for different SQL databases (MySQL, SQLite, PostgreSQL...)
  • flask-migrate: Wrapper for Alembic, a database migration framework for SQLAlchemy.

flask security

With WTForms we use the {{ form.hidden_tag() }} in the template to include some CSRF forgery. Using this together with a SECRET_KEY defined for the Flask configuration is enough for this.

birthdayreminder's People

Contributors

kuehn-innerste 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.