Skip to content

Frontend routes

Chase Agee edited this page Feb 13, 2024 · 1 revision

Frontend routes

/login

Log in page

This page displays a log in form

  • GET /login
  • POST /login

/signup

This page displays a signup form.

Sign up page

  • GET /signup
  • POST /signup

/

This is the home page. It has a Main navigation bar with Start a project link, Logo centered, user Login/Avatar Sub-Navbar with all the Categories. Total app stats div including projects funded, toward funding amount, and number of pledges Featured Project: randomized

  • GET /

/projects/created-projects

A list of the current user's projects where they can view, update or delete them update, delete buttons for the project

  • GET /projects/created-projects
  • DELETE /projects/<int:projectId>

/projects/backed-projects

A list of the current user's projects that they've backed likes, dislikes, and back project buttons

  • GET /projects/backed-projects BONUS
  • DELETE /projects/<int:projectsId>/backers

/categories/<str:category_name>

BONUS PAGINATION A list of the projects that belong to that category

  • GET /categories/<str:category_name>

/projects/new, /projects/<int:projectId>/edit

A form to create/edit a project

  • GET /projects/new
  • POST /projects/new
  • GET /projects/<int:projectId>/edit
  • PUT /projects/<int:projectId>/edit

/projects/<int:projectId>

A details page for a project includes: title, subtitle, preview image/video, pledged amount, funding goal, backers, time left, category, location

if owner: update, delete buttons for the project, add reward, update rewards, and delete rewards buttons if not owner: likes, dislikes, and back project buttons

story and details section A rewards list component

  • POST /projects/<int:projectId>/rewards

  • PUT /projects/<int:projectId>/rewards

  • DELETE /projects/<int:projectId>/rewards/<int:rewardId>

  • DELETE /projects/<int:projectId>

  • POST /projects/<int:projectId>/like

  • DELETE /projects/<int:projectId/like>

/projects/<int:projectId>/rewards

A list of all the project's rewards

user can "back" a project by selecting a reward

  • GET /projects/<int:projectId>/rewards
  • POST /api/projects/<int:projectId>/rewards/<int:rewardId>

BONUS SECTION

/projects/liked-projects

A list of the current user's liked projects

  • GET /projects/liked-projects

/projects/?search=xyz

A list of projects that match the search parameters

page: integer, minimum: 1, maximum: 10, default: 1 size: integer, minimum: 1, maximum: 20, default: 10 title: string, optional location: string, optional endDate: string, optional category: select, optional, default=all