Giter Site home page Giter Site logo

aaronlauterer / rsvp-backend Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 37 KB

my weddings rsvp backend

License: GNU General Public License v3.0

Shell 5.64% Python 94.36%
swagger connexion python jwt-authentication sqlite3 rsvp rest-api rest-server

rsvp-backend's Introduction

rsvp-backend

Backend server to handle the RSVP requests from the frontent (not yet available).

rsvp

Handles RSVPs to invitations. Does work for one event at a time as I built this for my wedding. It let's the invitees manage the names of guests and add their phone number and email address.

Configuration

Database storage path

The RSVP_DB_PATH environment variable determines the path to the sqlite file. Defaults to /tmp/rsvp.db.

Listen IP and HOST

The RSVP_HOST environment variable sets the IP on which the API server listens on.

The RSVP_PORT environment variable sets the PORT on which the API server listens on.

Token secret

In order to create a JWT a secret needs to be set. The RSVP_TOKEN_SECRET environment varialbe is expected and the server will die if it is not set.

User

In order to manage users who can add, delete and view all invitations we need a file where we store that information.

This is handled by the RSVP_PW_FILE environment variable which should store the path to the file containing the users and the password hashes. If not set it defaults to /tmp/rsvp_pw.

The file needs to be in the following format:

{
  "user1": "$2a$10$mrufUFDYdBt7oH7vZ7Ock.VRD4/D0YAjtYCMLIiTXxtIa4MSl8Ld.",
  "user2": "$2a$10$diewETIWYo9OU7IQOxGOR.mjMkQMzTAF/5wVuteiCxaUWxQ2T2HI."
}

The password hashing algorithm used is bcrypt.

rsvp-backend's People

Contributors

aaronlauterer avatar

Stargazers

 avatar

Watchers

 avatar  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.