Skip to content

franlol/final-project-ironhack-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

Description

Application where the user can post needs and other users can apply.

User Stories

  • 404: As an anon/user I can see a 404 page if I try to reach a page that does not exist so that I know it's my fault
  • Signup: As an anon I can sign up in the platform so that I can start sharing my services and getting help in my needs
  • Login: As a user I can login to the platform so that I can start sharing my services and getting help in my needs
  • Logout: As a user I can logout from the platform

//User

  • Add a need As a user I can add a need so that I can share it with the community and others can offer their services
  • Have a profile As a user I want to have a profile, so that others can check me.
  • Check my needs As a user I want to check my needs, so I can see if some worker applied to them
  • Check my applies As a user I want to check my applies, so that I can track my applies

//Worker

  • Search needs As a worker I want to search needs
  • List of needs As a worker, I want to see all the needs to apply in those that interest me
  • Apply As a worker, I want to apply to those needs than I can solve

Backlog

User profile:

  • Map
  • Finish rate system

#Server

Models

User model

username: String
email: String
password: String
profession: String
description: String
telephone: Number
photo: String
rating: Number
rate: Number
jobsDone: Number

Needs model

owner: ObjectID <ref: User>
title: String
rate: Number
tags: Array
description: String
isActive: Boolean
waitingNotification: Number

Apply model

need: ObjectId (ref Need)
applicant: ObjectId (ref User)
comment: String
status: String

API Endpoints/Backend Routes

//AUTH

  • GET /auth/me

  • POST /auth/login

    • body:
      • username
      • password
  • POST /auth/signup

    • body:
      • username
      • password
      • profession
      • telephone
  • POST /auth/logout

  • GET /auth/private

  • PUT /auth/:id

    • body
      • User (Object)

//NEEDS

  • POST /need/add

    • body
      • id
      • title
      • rate
      • description
      • tags
  • GET /need/latest

  • GET /need/all

  • GET /need/all/:id/

  • GET /need/:id

  • PUT /need/:id

    • body
      • userId
      • need
  • DELETE /need/:id

    • body
      • needID
      • userID

Git

Deployed project

Deploy link

Slides

Presentation slide

Slides Link

About

Ironhack final project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published