Daily Direct-to-Database Diary!
Run npm install
in the console from the root folder to automatically install the following packages.
- body-parser
- dotenv
- express
- express-handlebars
- handlebars
- mysql2
- sequelize
Create a .env
file in the root folder with the necessary information for local testing with MySQL. See ./docs/.env.example
for how it should look.
For Heroku deployment, the following environemntal variables must be configured:
- DATABASE_URL: your postgress database url
- NODE_ENV: production
the next three are according to your Zang or equivalent text service credentials
- ZAUTHTOKEN
- ZNUM
- ZSID
The assertion library used for this project is Chai. The test runner is Mocha.
Developers: Install the latest chai and mocha devdepencies and then type mocha in your CLI to see pass/fail test results.
Add additional notes about how to deploy this on a live system TEXT COMMANDS POST, TEXT, [TAG] Creates a text entry in the database with value TEXT with an optional keyword with value TAG GET, ID, IDNUM Sends SMS back to SMS end-user of entry with id IDNUM PUT, IDNUM, TEXT Replaces the text of the entry with the value of TEXT DELETE, IDNUM Removes the entry with id IDNUM HELP displays commands
- Tobia Giachetti - tgiachett
- Bettina Junghahn - bettijung
- Paula Peroutka - paulaperoutka
- Alexander Florian-Prescott - EPluribusAlex
This project is licensed under the MIT License - see the LICENSE.md file for details
Made possible with Zang, an Avaya company.