Skip to content

JohnDanaher/onlyplants

 
 

Repository files navigation

OnlyPlants


Description

OnlyPlants is a virtual environments wherein plant parents can track, learn about, and share their plants with others

User Stories


As a user, I want to:

  • Homepage - Learn what to expect from the app just by viewing the homepage
  • Sign Up/Login/Logout - Easily create a user profile, access it, and log out from it
  • Profile page - See all my plant babies and all the plants of my friends/colleagues/people I'm plant-sitting for as well
  • Rooms - Create, edit, and delete rooms and easily fill them with virtual vegetation
  • Plants - Add, edit, and - if unable to resuscitate - remove plants from any of my rooms

Backlog


List of backlog features

  • Create additional rooms
  • See weather conditions in user location in order to adjust plantcare accordingly
  • Upload/edit user/plant avatars
  • Profile info
  • View friend's profile

Routes


Index

  • GET/ - Renders homepage/If user logged in, renders user profile

Auth

  • GET/auth/signup - Renders signup form/Redirects to profile if user logged in
  • POST/auth/signup - Redirects to log in page/Body: firstName, lastName, dateOfBirth, avatarUrl, gender, location, username, email, bio, password, passwordCheck
  • GET/auth/login - Renders login form/Redirects to profile if user logged in
  • POST/auth/login - Redirects to user profile page/Body: username, password
  • POST/auth/logout

Profile

  • GET/profile/username - Renders user profile, user rooms, user/friend's plants/fetches weather API
  • GET/profile/username/edit - Renders user edit page
  • POST/profile/username/edit - Redirects to profile/Body: firstName, lastName, dateOfBirth, avatarUrl, location, bio

Rooms

  • GET/rooms - Renders rooms page
  • GET/create - Renders room create form
  • POST/create - Redirects to rooms page/Body: name, slug, ownerId
  • GET/roomId - Renders rooms page
  • GET/roomId/edit - Renders room edit page
  • POST/roomId/edit - Redirects to room detail page/Body: name, inviteesList
  • POST/roomId/delete - Redirects to rooms page

Plants

  • GET/create - Renders plant create page
  • POST/create - Redirects to user profile page/Body: name, nickname, room, image_url
  • GET/plants/details/id - Renders plant details page
  • GET/plants/edit/id - Renders plant edit page
  • POST/plants/edit/id - Redirects to plant details page/Body: nickname, room, image_url
  • POST/plants/delete/id - Redirects to user profile profile page

Models


User model

  • username
  • email
  • firstName
  • lastName
  • gender
  • avatarUrl
  • dateOfBirth
  • location
  • bio
  • passwordHash
  • rooms
  • plants
  • timestamps

Room model

  • name
  • slug
  • ownerId
  • inviteesId
  • plants

Plant model

  • nickname
  • parent
  • room
  • commonName
  • image_url
  • light
  • toleratedLight
  • waterSchedule
  • minTemp
  • maxTemp
  • latinName

Links


Trello board that we totally kept up with


OnlyPlants github


OnlyPlants

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.4%
  • Handlebars 30.4%
  • CSS 23.2%