Skip to content

jofremoreno/weathever-app-backend

 
 

Repository files navigation

Weathever

Description

​ App to visually and chromatically help time and its temperature as well as a social section ​

User Stories

404 - As a user I want to see a nice 404 page when I go to a page that doesn’t exist so that I know it was my fault. ​ 500 - As a user I want to see a nice error page when the super team screws it up so that I know that is not my fault. ​ Homepage - As a user I need to be registered and logged in to use the app. ​ Sign up - As a user, I want to register on the website to see all the events. ​ Login - As a user, I want to be able to log in to the website in order to use the app and view and edit my profile. ​ Logout - As a user I want to be able to log out from the webpage so that I can make sure no one will access my account

User default home As a user, I want to see the weather according to geolocation and the color of the tempoeratura. ​ Search - As a user, I can search for available cities to be able to choose which ones I want to see the temperature. ​ Favorites - As a user, I want to create a list of favorite cities to be able to see the information at all times. ​ Social - As a user, I want to see and create messages to see the real weather according to the area you ask. ​ Profile - As a user, I want to see, edit and / or delete my profile. ​

Backlog

​ Future days prediction (example, 15 days vist). ​ Social: chat implementation according to geolocation

Weather: maybe some animation/transitions ​

Routes

​ | Page name | Method | | -------------------- | ---- | ----------------------- | | Home | / | | Log in | post | /login | | Sign up | post | /signup | | Social | post | /social | | Social | post | /social | | Fav | post | /favorites | | Fav | delete | /favorites | | Profile | post | /profile | | Profile | put | /profile | | Profile | delete | /profile | ​

Models

​ User model ​ username: { firstname: { type: String, match: [/^[a-zA-Z0-9]+$/, 'is invalid'], index: true, },

  lastname: {
    type: String,
    match: [/^[a-zA-Z0-9]+$/, 'is invalid'],
    index: true,
  },

},

  avatar: { 
    type: String, 
    default: '../images/avatardefault.jpg' 
},

  email: {
    type: String,
    lowercase: true,
    match: [/\S+@\S+\.\S+/, 'is invalid'],
    index: true,
},

  search: {
    citydata: {
      cityname: {
      type: String,
      index: true,
    }
  }

  fav{
      type: String,
      required: true,
      index: true,
   },
},

Social model

  social: {

},
    countryname: {
      type: String,
      required: true,
      index: true,
    },

    temp: {
    type: number,
    required: true,
}

} }

Links

Git

​ The url to your repository and to your deployed project ​ Repository Frontend LinkRepository Backend LinkDeploy Link

Slides

Slides Link

About

weathever backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%