It is a website created from boredom and routine, to be able to disconnect with so much stress for at least a few minutes a day.
-
GET /
- renders Landing page
-
GET /auth/signup
- redirects to / if user logged in
- renders the signup form
-
POST /auth/signup
- redirects to / if user logged in
- body:
- username
- password
-
GET /auth/sigin
-
redirects to / if user logged in
-
POST /auth/sigin
- redirects to / if user logged in
- body:
- password
-
POST /auth/logout
- Session Destroy
-
GET /main
- renders the main.hbs
- all the jokes and categories
- profile icon to get into the profile
-
GET /profile/:id
- renders the Profile detail page
- includes the list of favourite jokes
- personal user data
- button for edit the profile and user data
-
POST /profile/:id/edit
- renders to edit profile
- redirect then to the profile with the save changes
- delete favourite jokes
-GET /main/general
- renders general.hbs
- carrousel of jokes with the add to fav button
-GET /main/programming
- renders programming.hbs
- carrousel of jokes with the add to fav button
-GET /main/knock-knock
- renders knock-knock.hbs
- carrousel of jokes with the add to fav button
User model
username: {
type: String,
require: true
},
password: {
type: String,
require: true
},
email: {
type: String,
require: true,
},
favJokes: [{type: Schema.Types.ObjectId, ref: 'Joke'}]
Joke model
id: {
type: Number,
required: true
},
type: {
type: String,
required: true
},
setup: {
type: String,
require: true,
},
punchline: {
type: String,
require: true,
User profile:
- share jokes on social networks
Homepage
- Add image and gif
- Search joke
https://whimsical.com/wireframe-proj2-4VMv3yMwTojLnN8vExhoKU
https://trello.com/b/7R0sJtUj/project-2
https://github.com/ritamak/funnyfy
The url to your presentation slides