Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crowdfunding Back End

Arsen ILHAN

Concept/Name

Inkvestor empowers aspiring authors to bring their stories to life. Readers and supporters can contribute to the books they want to see published, helping writers cover editing, design, and printing costs. If a project reaches its funding goal, the book gets published — turning creative dreams into real pages.

Intended Audience/User Stories

Our intended audience includes aspiring authors, book lovers, and supporters of creative projects. Authors will use the website to showcase their book ideas, set funding goals, and connect with potential readers who believe in their work. Supporters and readers will browse projects, choose the books they want to see published, and contribute funds to help bring those books to life.

Front End Pages/Functionality

Home Page

  • Featured fundraising projects (highlighting popular or new campaigns)
  • Search and filter options for projects (by genre, funding goal, author, etc.)
  • Quick “Support Now” buttons for easy backing
  • Links to create a new fundraiser or browse categories

Create New Fundraiser Page

  • Form with fundraiser details (title, description, funding goal, cover image, sample content)
  • Option to set campaign duration and reward tiers
  • Ability to preview before submitting
  • Submit button to publish the fundraiser
  • Nice error pages and inline validation for missing or incorrect details

Project Detail Page

  • Full description of the book project
  • Author profile and background
  • Funding progress bar and number of backers
  • “Support This Project” section with pledge options
  • Comment and Q&A section for backer interaction

User Dashboard

  • List of fundraisers created by the user
  • Funding status and analytics for each project
  • Edit or update campaigns (e.g., post news or progress updates)

Error / Info Pages

  • Custom 404 “Page Not Found” page
  • Custom error pages for form validation issues
  • Friendly “Thank You” page after a successful pledge or campaign creation

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. }}

different endpoints ( like /fundraisers page pledges, profile etc )

URL HTTP Method Purpose Request Body Success Response Code Authentication/Authorisation
/fundraisers GET Fetch all fundraisers N/A 200 None
/fundraisers POST Create a new fundraiser JSON Payload 201 Any logged-in user
/fundraisers/{id} GET Fetch details of a specific fundraiser N/A 200 None
/fundraisers/{id} PUT Update an existing fundraiser JSON Payload 200 Fundraiser owner only
/fundraisers/{id} DELETE Delete a fundraiser N/A 204 Fundraiser owner only
/fundraisers/featured GET Get featured fudnraisres N/A 204 admin only
/fundraisers/{id}/likes GET Fetch liked fundraiser N/A 204 Other users
/fundraisers/{id}/likes POST Likes fundraiser N/A 204 Other users
/fundraisers/{id}/pledges GET Fetch all pledges for a specific fundraiser N/A 200 Fundraiser owner or admin
/fundraisers/{id}/pledges POST Create a pledge for a fundraiser JSON {Payload} {"fundraiser_id"} 201 Any logged-in user
/fundraisers/{id}/pledges PUT Update pledge JSON Paylod 200 Fundraiser owner
/fundraisers/{id}/comments GET gets comment from a fundraiser N/A 204 Fundraiser owner only
/fundraisers/{id}/comments post Creates comment on a fundraiser N/A 204 Fundraiser owner only
/fundraisers/{id}/comments PUT Update comments on a fundraiser N/A 204 Fundraiser owner only
/fundraisers/{id}/comments DELETE Delete a comment on a fundraiser N/A 204 Fundraiser owner only
/fundraisers/search GET Search N/A 204 Logged-in users
/profile GET Fetch logged-in user profile details N/A 200 Logged-in user
/profile PUT Update logged-in user profile JSON Payload 200 Logged-in user
/auth/register POST Register a new user JSON Payload 201 None
/auth/login POST Log in and retrieve authentication token JSON Payload 200 None
/auth/logout POST Log out user and invalidate session/token N/A 204 Logged-in user

DB Schema

Testing Markdown all in one

print ("Hello World")
"My new line testing here" 
You need to start with three ``` and finish with three ```

Some extra features

Progress bar / pledge tiers

you see all pledges for fundraiser27. $100,25 and 50 pledges progress

Goal is $1000 and $175 donated.You can also see different pledge tiers. progress

Search

word game and harry are searched ad results are listed search search

Featured

top 3 most pledges fundraiser featured featured

Likes

status is liked like

if button is cliecked again, it is unliked like

we can see the like here like and here like

LOCALHOST SCREENSHOT

Lets have a look at the accounts first. hacker user

Fundraiser

Get for user:We see fundraiser ide 1,2,6... GET The last Fundraiser id is 24. I will delete 23th one later, pay attention to this. GET Post for user: as you see above, last one was 24. you see 25th fundraiser here. POST Put for user:lets update this 25th fundriaser details PUT this fundraiser is not my own fundraiser, so. icannot update it PUT Delete for user: DELETE lets try to delete fundraiser 24 DELETE It didnt allow us to delete because it is created by other user. Lets check the get request again now. GET As you see above, 23th is deleted and 24th stayed and the last one shows my updated details too. lets jump to the hacker account. Get for hacker: we see all the fundraisers GET we see the last fundraiser 24th and 25th GET Post for hacker: POST Put for hacker: i can do it, because it is hackers fundraiser PUT this fundraiser is not my own fundraiser, so. icannot update it PUT Delete for hacker:i could delete 26th as hacker created it DELETE this is created by other user, i cannot delete it. DELETE I won't see the 26th as i deleted it. Lets see individual fudnraiser id: GET GET

Pledges

Get for user:We see pledges from 1,2,3.. GET The last pledge is id is 16 GET All these were created before pledging against your own fundraiser rule. POST as the above is my own pledge, i couldnt raise pledge POST i pledged for other users fundraiser POST i tried to pledge agaisnt fundraiser doesnt exist. I can update comment and amount. this will be fixed in later stages. PUT Once you pledge/ donate, you cannot take it back. thats why this is not working DELETE GET The last pledge is id is 16 GET All these were created before pledging against your own fundraiser rule. POST as the above is my own pledge, i couldnt raise pledge POST i pledged for other users fundraiser POST i tried to pledge agaisnt fundraiser doesnt exist. I can update comment and amount. this will be fixed in later stages. PUT Once you pledge/ donate, you cannot take it back. thats why this is not working DELETE

Comment

GET Any user can comment on fundraiser. POST

DEPLOYMENT SCREENSHOT

Lets have a look at the accounts first. hacker user

Fundraiser

Get for user:We see fundraiser ide 1,3,5... GET The last Fundraiser id is 7. I will delete this one later. GET Post for user: as you see above 9th one is newly added POST Put for user:lets update this 9th fundriaser details PUT this fundraiser is not my own fundraiser, so. icannot update it PUT Delete for user: DELETE lets try to delete fundraiser 24 DELETE It didnt allow us to delete because it is created by other user. Lets check the get request again now. GET lets jump to the hacker account. Get for hacker: we see all the fundraisers Hacker GET GET Post for hacker: POST Put for hacker: i can do it, because it is hackers fundraiser PUT this fundraiser is not my own fundraiser, so. icannot update it PUT Delete for hacker:i could delete 26th as hacker created it DELETE this is created by other user, i cannot delete it. DELETE Lets see individual fudnraiser id: GET GET

Pledges

Get for user:We see pledges here GET All these were created before pledging against your own fundraiser rule. POST as the above is my own pledge, i couldnt raise pledge POST i pledged for other users fundraiser POST i tried to pledge agaisnt fundraiser doesnt exist. I can update comment and amount. this will be fixed in later stages. PUT Once you pledge/ donate, you cannot take it back. thats why this is not working DELETE Hacker GET GET All these were created before pledging against your own fundraiser rule. POST as the above is my own pledge, i couldnt raise pledge POST i pledged for other users fundraiser POST i tried to pledge agaisnt fundraiser doesnt exist. I can update comment and amount. this will be fixed in later stages. PUT Once you pledge/ donate, you cannot take it back. thats why this is not working DELETE

Comment

GET Any user can comment on fundraiser. POST

Some links from heroku

https://inkvestor-40ee966b1650.herokuapp.com/fundraisers/

https://inkvestor-40ee966b1650.herokuapp.com/fundraisers/5/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages