2019 is coming. You must already have a list of the New Year's Resolutions. Have you ever experienced the post new year slump, and cannot keep your resolutions until the next new year comes?
Don't set too many goals, It is not realistic you can stick with so many goals at one time. If you have too many goals to achieve Here is how to prioritize your goals
Perfection is unattainable. This app will send you the auto daily text reminder and of your goal automatically with Twilio API, and when the due date of your goal is approaching.
Get the support from your community. Your created goals will be supported/claps from other users and some comments from other users.
- node v10.14.2
- npm v6.4.1
- postgres v10.5
- npm install - install deps
- createdb goals - create the database
- node seed.js - create tables and inssert some sample data
If you haven't already, sign up for an account at twilio.com
If you don't have one, you can get a free a Twilio phone number
TWILIO_ACCOUNT_SID=YOUR TWILIO Account_SID
TWILIO_AUTH_TOKEN=YOUR TWILIO AUTH_TOKEN
TWILIO_NUMBER=YOUR TWILIO NUMBER +1XXXXXXXXXX
TWILIO_USERNAME=The username you want to get all the goals through Twilio inbound messages
POST /auth/login
Login to your account and request an API Auth Token
POST /auth/register
Create a new account and request an API Auth Token
POST /users
Logged in and you can get all the users in the system
POST /users/:username
Logged in and you can see other user's profile and goals with the username name in the url
PATCH /users/:username
Logged in and only the user him/herself can change his/her profile info with username in the url
DELETE /users/:username
Logged in and only the user him/herself can delete his/her account with username in the url
GET /goals
Anyone can see the goals all the users creaetd in the system
POST /goals/:username/:id
Logged in and only the user him/herself can see all the steps related to the goal he/she created with his/her username and the goal id
POST /goals/:id/support
Logged in and the user can support/follow other people's goal with the goal id
POST /goals/:username
Logged in and only the user can create a goal in his/her account with username in url
PATCH /goals/:username/:id
Logged in and only the user can edit the goal he/she created with his/her username and the goal id
DELETE /goals/:username/:id
Logged in and only the user can delete the goal he/she created with his/her username and the goal id
POST /goals/:username/:id/complete
Logged in and only the user can change the statw of the goal to "completed" he/she created with his/her username and the goal id
POST /steps/:username/:goal_id/:step_id
Logged in and only the user can see a specific step for one goal with provided username, goal id and step id
POST /steps/:username/:goal_id
Logged in and only the user can create a new step for one goal with provided username, goal id
PATCH /steps/:username/:goal_id/:step_id
Logged in and only the user can edit a specific step for one goal with provided username, goal id and step id
DELETE /steps/:username/:goal_id/:step_id
Logged in and only the user can delete a specific step for one goal with provided username, goal id and step id
POST /twilio
With Twilio inbound message the user can get all the not complted goals from text messages. Now the username if the goals is hard coded in the route. Will work on making it dynamic.
- Data validation from server side by adding json schema
- Error handling at server side
- add the frontend page when you vist the website you can see the ten most created goals