This repository contains the backend server for a AdoptifyMe application.
AdoptifyMe is a web platform designed to simplify the process of pet adoption from shelters and connecting users with their future furry companions.
The AdoptifyMe Server serves as the backend for the MERN (MongoDB, Express, React, Node.js) stack application. It handles the server-side logic, API endpoints, database interactions, and more.
For the frontend code, please visit the AdoptifyMe client repository.
To set up and run Adoptify Server locally, follow these steps:
-
Clone this repository:
git clone https://github.com/MariaG6/AdoptifyMe-server.git
-
Navigate to the project directory:
cd AdoptifyMe-server
-
Install the required dependencies:
npm install
-
Start the server:
npm run dev
The server will be accessible at the specified port (default: 3000).
We recommend using PostMan for testing.
app.js
: The main application file.server.js
: Server setup and configuration.routes/
: Contains route handlers for various API endpoints.models/
: Defines the data models for the application.middleware/
: Custom middleware functions..gitignore
: Specifies which files and directories should be ignored by Git.package.json
andpackage-lock.json
: Contain the project's dependencies.
The server includes error handling to ensure the application gracefully handles errors and provides appropriate responses to clients.
The server defines various API routes for interacting with the application's data. These routes are located in the routes/
directory.
If you wish to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your contribution:
git checkout -b my-contribution
-
Make your changes, document any new features or modifications, and ensure the application is working correctly.
-
Submit a Pull Request with your changes.
Thank you for using and contributing to the AdoptifyMe Server! 👋