Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crowdfunding Back End

{{ your name here }}

Planning:

Concept/Name

The website concept is a fundraiser to give gifts to underprivileged children. The fundraiser will have an option to either raise a certain amount of money or pledge specific items (through amount).

Intended Audience/User Stories

Intended audience is anyone who wants support/donate to underpriviledged children.

Front End Pages/Functionality

  • Home Page

    • requirements first then

    • Featured kickstarters
  • Create New Fundraiser Page

    • Form with fundraiser details
    • Abilities to submit
    • Nice error pages for validation
  • Display Fundraiser

    • Shows all information about fundraiser
    • Show all pledges made so far
  • {{ A page on the front end }}

    • {{ A list of dot-points showing functionality is available on this page }}
    • {{ etc }}
    • {{ etc }}
  • {{ A second page available on the front end }}

    • {{ Another list of dot-points showing functionality }}
    • {{ etc }}

API Spec

{{ Fill out the table below to define your endpoints. An example of what this might look like is shown at the bottom of the page.

It might look messy here in the PDF, but once it's rendered it looks very neat!

It can be helpful to keep the markdown preview open in VS Code so that you can see what you're typing more easily. }}

URL HTTP Method Purpose Request Body Success Response Code Authentication / Authorisation
/fundraisers/ GET Fetch all the fundraisers N/A 201 None
/fundraisers/ POST Create a new fundraiser JSON Payload 201 Any logged in user
/fundraisers/1/ text text text text text
/pledges/ GET Fetch all the pledges N/A 200 Any logged in user
/pledges/ POST Create a new pledge JSON Payload {"fundraiser_id"} 201 Any logged in user

DB Schema

Link to deployed project: https://karolt-crowdfunding-70503c219ccc.herokuapp.com/fundraisers/

Working POST endpoint (auth-token) alt text

Working GET endpoint (fundraisers) alt text

Working PUT endpoint (fundraisers) alt text

Steps:

  1. Create a user using POST person
  2. Log in
  3. Check all available fundraisers using GET fundraiser
  4. Call POST api-auth, create a fundraiser using POST fundraiser
  5. Pledge using POST pledge

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages