Generate an email reminder to take a medication at specific times every week. Demo it here.
- The app may take a few seconds to register, login or demo, since the app server is on a free heroku dyno that may need to wake up.
This was an early fullstack project built with react and express in the fulltime Thinkful Web Development Bootcamp.
The objective was to create a simple scheduler, which generates an email at set intervals. This was achieved using node-schedule in Express to call mailjet.
##Technologies
Tech | Description |
---|---|
React | Javascript framework for single page apps |
Redux | Application state management for react |
Express | Server framework for Node |
MongoDB | No-SQL database |
Mailjet | Automated email generator |
The server code can be found here
- POST /user :: creates new user
- PUT /user :: updates username or password
- DELETE /user :: deletes user
- GET /medication :: returns array of medication reminders associated with user
- POST /medication :: creates medication reminder
- PUT /medication :: updates medication reminder
- DELETE /medication :: deletes medication reminder
To develop this app's front end, make sure you have node and npm installed, then:
- clone the repo
- cd into repo, then run
npm install
- start development server with
npm start
- navigate to
http://localhost:3000
in your browser to access app
To develop this app's server side:
-
change
rootUrl
insrc/actions.js
tohttp://localhost:8080
(or other port if specified) in order to develop locally. -
the server side is currently a submodule of a larger portfolio server
-
develop run the medication reminder express server locally:
- clone, configure and start the app's express server
- comment or delete
app.use('/blog', blog)
andapp.use('/elearn', eLearn)
- comment or delete files:
blog.js
box.js
eLearn.js
- obtain Mailjet API credentials by signing up (for free)
- add
.env
file, containing:MAILJET_KEY
:: your Mailjet application public keyMAILJET_SECRET
:: your Mailjet application private keyALERT_FROM_EMAIL
:: email address you want to alert to be sent fromALERT_FROM_NAME
:: name you want email to appear sent fromDATABASE_URI
:: connection to your mongo database'mongodb://<database name>'
- start server with
node server.js
- server will now run at
http://localhost:8080
by default
- oshirodk
- phc5
- jpke
This app is built in create-react-app. It was derived from another build.