Skip to content

jcpst/rsvp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
db
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

Simple RSVP

Heavily inspired by this blog post with a simple RSVP tool built with node.

As a node developer starting to learn Rust, this looked like a fun experiment.

Usage

Requires Rust and Postgres.

Build Project

  • git clone this project.
  • cd rsvp
  • cargo build

Initialize Database

psql -f db/init.sql

Add config files (at root of project)

.env

Required variables:

EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_ADDRESS=joe@example.com
EMAIL_PASSWORD=123secrect
POSTGRES_CONNECTION_STRING=postgres://postgres@localhost:5432/rsvp

invitees.csv

This will be the list of people that get emailed invitations:

name,email
Joe Bob,jb@example.com
Tom Bomb,tb@example.com

Commands

  • cargo run -- migrate
    • will read the info from your invitees.csv file and add them to the database as pending invitations
  • cargo run -- mailer
    • will send invitations to the people that haven't been invited yet, and update their record as 'invited'
  • cargo run -- server
    • runs a Nickel server that accepts invitations.

TODO

  • Create a template for the email body
  • Serve a page that lets you enter your email, and if it's in the database, will resend the invitation.

About

simple RSVP tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published