This document provides information about the backend structure of our web application. It's built using NodeJS with TypeScript, MongoDB, Mongoose, and Express.js.
This code-base follows the MVC structure. Where the nested module folder defines the controller, routes and services of the server side application.
the /src
folder is the root folder of the code base.
This server is hosted on Vercel a free hosting provider for modern web application.
Deployment Link: [https://donation-server-six.vercel.app](https://donation-server-six.vercel.app/)/api/v1/
- Create User:
/user/create
(POST) - Login :
/user/login
(POST) - Get User :
/user/:id
(GET) - Create Admin:
/user/create-admin
(PATCH)
name: string,
email: string,
password: string,
role: string
- Create Campaign :
/campaign/create
(POST) - Get All Campaign:
/campaign/all-campaign?limit=10
(GET) - Get Single Campaign:
/campaign/:id
(GET) - Update Campaign:
/campaign/update/:id
(PATCH)
title: sring,
description: string,
amount: number,
image: string,
creatorId: string
category: string
- Create Donation:
/donation/create
(POST) - Get All Donation:
/donation/all-donation
(GET) - Get Donation by Campaign:
/donation/donations-by-campaign
(GET) - Get Donation by User :
/donation/donations-by-user
(GET)