Before you begin, ensure you have met the following requirements:
- Node.js installed on your local machine.
- npm (Node Package Manager) or yarn installed.
To get a local copy up and running follow these simple steps.
-
Clone the repository to your local machine:
git clone <repository-url>
-
Navigate into the project directory:
cd backend
-
Install dependencies:
npm install
-
Set up environment variables:
Copy the
.env.example
file to.env
and set the appropriate values for your environment variables. -
Start the development server:
npm start
-
The server should now be running at
http://localhost:3000
.
/donations
:GET
: Get all donations.POST
: Add a new donation.
/donations/:id
:GET
: Get a donation by ID.PUT
: Update a donation by ID.PATCH
: Partially update a donation by ID.DELETE
: Delete a donation by ID.
Distributed under the MIT License. See LICENSE
for more information.