Skip to content

iMentorIronhack/iMentor-server

 
 

Repository files navigation

  -->

iMentor: Find a mentor in the Ironhack community

Description

iMentor You started your journey as a developer at Ironhack. Do you need some advice? We give you the option to get in touch with some senior Ironhackers so you can find the best mentor to guide you through your new journey. With iMentor you will find the best mentor within the Ironhack community.

User Stories

  • Error 4xx- As a user, I want to see a clear error page when it doesn't exist/has restricted access so that I know I probably make a mistake.
  • Error 5xx - As a user, I want to see a clear error page when problems are generated by the server so that I know that is not my fault.
  • index/home - As a user, I want to seamless access the index/home so that I know I'm the right place to begin the flow.
  • signup - As a user, I want to signup in a secure and easy way on the webpage so that I can start using the app.
  • login - As a user, I want to be able to login on the webpage so that I can see my personal account.
  • logout - As a user, I want to be able to logout from the webpage so that I can make sure no one will access my personal account.
  • edit profile - As a user, I want to be able to edit my profile so that I can modify my personal data.
  • create article - As a user, I want to create my articles in an easy way so that I have a personal collection and stay in touch with my favorite categories.
  • Categories - As a user, I want to keep update in all the categories that I've chosen.

Server Routes/Views:

Method View Route Description Request - Body
GET index / Main page route for ìndex or home view. If not logged redirect to /login {req.session.currentUser._id}
GET signup /signup Render signupform view
POST signup /signup Send signup data to server and creates an user in DB. Then redirect to /categories {username, email, password}
GET login /login Render loginform view
POST login /login Send login data to server and redirect to index {email, password,categories}
GET categories /categories Render categoriesview {req.session.currentUser._id}
POST categories /categories Sends ObjID of the categories that user choose. Then redirect / {req.session.currentUser._id}
GET profile /profile/:add Render post-creationview
GET profile /profile Render profileview {req.session.currentUser._id}
POST profile /profile/:user:id Send the data updated by the user to the DB. Then render profileview {req.session.userID, name, password, email, category, image, req.session.currentUser._id}
POST logout /logout Redirect to /login

Backlog

Method Route Description
GET /inbox Render inbox messages

Models

User

{
username: String
password: String
email: String
Cagtegory: ObjectId
image: String
}

Article

{
title: String
description: String
url: String
source: String
image: String
category: ObjectId
language: String
published_at: Date
}

Category

{
name: String
}

Links

Git

Repository Link

Slides

Slides Link

Contributors

Corina Perjan - Github - <linkedin

Alberte Vieites - Github - linkedin

Adrian Molina - Github - linkedin

Klaus Haugness- Github - linkedin

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.9%
  • Shell 1.1%