Quickstart guide
This guide will get you up and running with the Adoptme API in just a few minutes. You’ll install the API, start the server, and make your first API call.Prerequisites
Before you begin, ensure you have:- Node.js v22 or higher - Download Node.js
- MongoDB - Running locally or a connection string to MongoDB Atlas
- Git - For cloning the repository
Get started
Configure environment
Create a
.env file in the root directory:For MongoDB Atlas, use your connection string:
mongodb+srv://username:[email protected]Try the interactive documentation
The Adoptme API includes Swagger UI for interactive API exploration:- Open your browser and navigate to:
http://localhost:8080/docs - You’ll see all available endpoints
- Click on any endpoint to expand it
- Click “Try it out” to make requests directly from the browser
Generate mock data
Want to quickly populate your database with test data? Use the mock data endpoint:- 5 mock users
- 10 mock pets
- Random adoption assignments
GET /api/pets, you’ll see the generated pets!
What’s next?
Installation guide
Detailed setup instructions and troubleshooting
API reference
Explore all available endpoints
Authentication
Learn about JWT authentication
Mock data
Generate test data for development