Skip to content

septa-unella-honors-program/suhp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Septa Unella Honors Program (SUHP)

Description

This one of a kind motivation app allows users to make goals and set a deadline to accomplish those goals. If the user is able to accompish his or her goal by the deadline, a congratulatory email is sent out to the user and a chosen list of his or her friends. However, if the user does not accomplish a goal by the set deadline, Game of Throne's own Septa Unella will visit the user and his or her friends via email and cry out SHAME! SHAME! SHAME!

Style Guide

######Commenting

At the beginning of each file, write a 1-2 line comment explaining the purpose of the file in relation to the project. Write a multiline comment explaining the purpose of any function / method / variable / service / element that may be confusing or unclear to the reader.

Front End

Utilizes Angular 1.5, ng-route and Bootstrap. All factories are located in the services.js file. Routing is located in app.js.

Backend Routes

Endpoint Method Response Expected
'/signin' GET **Array of single user where user login matched user in database[{,"id": 1,,"username": "Lee",,"email": "lee@gmail.com",,"password": "pass",,"createdAt": "2016-08-28T18:12:15.031Z",,"updatedAt": "2016-08-28T18:12:15.031Z",}] {“username”:”lee”,“password”:”MKS”}
'/signup' POST ***If Successful {,"username": "Lee",,"email": "lee@gmail.com",,"password": "pass",}
'/goals' GET ***An array of all goals belonging to a user[,{,"id": 1,,"description": "to be the best lucas EVER",,"deadline": "2020-01-12T08:00:00.000Z",,"hasExpired": false,,"hasCompleted": false,,"createdAt": "2016-08-30T18:48:17.491Z",,"updatedAt": "2016-08-30T18:48:17.491Z",,"UserId": 1,}...{}....{}] **an array of goals {,"username": "Lee",}
'/goals' POST ***If Successful {“username”:”lucas”,“description”:”lose 5 lbs”,“deadline”: “September 20, 2016 17:58:00”}
'/goals' PUT ***If Successful ***get the goal ID from the field ID in the goals JSON object returned in the GET request{,goalId:1;}
'/email' POST ***If Successful **an array of emails{“username”:”lucas”,“emails”: [ ‘lucas@gmail’,,‘lee@gmail’ ]}

Tech Stack

Angular 1.5 Node.js Express.js PostgreSQL Sequelize

######Authors

Lee Mordell, Vivian Sze, Lucas Fisher, Lauren Settle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •