A small Node.js and express application with a SQLite databased that collects user information and display their current weather. This well be used as the starter for a Courier Sample Application. Notifications will be added using Courier and several channel providers like Twilio for SMS, SendGrid for email, and Slack for direct messaging.
Follow @trycourier on Twitch to be notified of future live streams.
Create your own copy of this project using the button below.
This project uses 2 environment variables that you'll need to supply values for in the .env
file.
COURIER_AUTH_TOKEN
- Get this by signing up for a free Courier Account.OPENWEATHER_API_KEY
- Get this by signing up for a free OpenWeather Account.SLACK_BOT_TOKEN
- Get this from your Slack Application
This project was created to run in Glitch, but can be run locally with these additional steps.
- Clone the repo at https://github.com/trycourier/pigeon-weather
- In the repo directory, run
npm install
- Create the database by running
mkdir .data && touch .data/database.sqlite
- Create a
.env
file and add the variables from above. - Start the application by running
npm start
- Open a browser to http://localhost:58428
This project uses git tags to allow you to jump to different instances of the application. After each live stream, we will create a tag so you can see what the code looks like before and after.