Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services #7

Open
JoeyDelahoussaye opened this issue Sep 11, 2018 · 0 comments
Open

services #7

JoeyDelahoussaye opened this issue Sep 11, 2018 · 0 comments

Comments

@JoeyDelahoussaye
Copy link
Collaborator

JoeyDelahoussaye commented Sep 11, 2018

client: business-signup post request ('/business-signup', sends sign up info from business user and sends it to server)
server: business-signup post handler('business-signup', receives business info, makes google civic api call for next congressional/president election data, saves all info to db, return 201, call email api and send business ref # and email template)

client: employee-signup post request ('/employee-signup', sends name, email address, phone number and business ref #)
server: employee-signup post handler('employee-signup', finds next election in area from database, saves it and employee info as entry in db, return 201)

timer: makes api call to google places for library locations, calls email api to send election info to employee along with 'set up a gameplan' link

client: employee-go-vote1 post request ('/employee-go-vote1', sends name, email address, phone number and business ref # and sends to server)
server: employee-signup post handler('employee-signup', finds next election in area from database, saves it and employee info as entry in db)
and map with libraries and home address)

client: employee-go-vote2 post request ('/employee-go-vote2', sends selected library address and home address)
server: employee-go-vote2 post handler('employee-go-vote2', makes api call to google distance, returns drive time, makes sendgrid call, sends business owner and employee gameplan)

client: employee-i-voted post request ('/employee-i-voted', sends yes or no with business ref # and name)
server: employee-i-voted post handler('employee-i-voted', adds tally to db)

server: 10 days after election, makes api call to sendgrid, sends business owner stats email, makes api call to find next election, replaces current election entry

get calls ('/login', retrieves profile data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant