jodyheavener / pals

SMS Pen Pals

Home Page:https://dev.to/jody/won-t-you-be-my-pal-35ci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pals

Development

Prequisites:

Setting up:

  • Clone this repo: git clone git@github.com:jodyheavener/pals.git
  • Install dependencies: yarn install
  • Remove the -dist from both secrets files. Update secrets.dev.json for local development, and secrets.staging.json for when you want to deploy

Now you can run:

  • Run locally / offline: sls offline start --skipCacheInvalidation --printOutput
  • Deploy everything to AWS staging: sls deploy --stage staging -v
  • Run a function locally: sls invoke local -f FUNCTION_NAME
  • Run a function on staging: sls invoke -f FUNCTION_NAME --stage staging

Reference config/functions.yml to see available functions. You can also import insomnia.json into Insomnia if you'd like to test requests.

To do:

This was fun, but it could be vastly improved in so many ways...

  • Clean up Typescript! There are lots of // @ts-ignore, and any types
  • Add some sort of throttling for messages
  • Add ability to report Pal
  • Add ability to access menu while waiting for connection
  • Add ability to infer initial language and set additional languages, pair with someone who speaks your language
  • When you end a chat with your Pal it should never rematch with them

About

SMS Pen Pals

https://dev.to/jody/won-t-you-be-my-pal-35ci

License:MIT License


Languages

Language:TypeScript 100.0%