Contents
This backend server is to be used with the aniledev/petful-client and provides support for the First In First Out pet adoption client. This repo directory is organized by source files, files related to the /api/cats endpoint, the /api/dogs endpoint, and the /api/people endpoint.
Each endpoint uses the express.Router class to create modularized route handlers. Additionally, the routers make use of a service to easily preform actions using the queue data structure.
Full API documentation can be found on Postman. See the complete documentation for endpoint descriptions, example request snippets, and example response snippets in various formats.
GET /api/cats
DELETE /api/cats
GET /api/dogs
DELETE /api/dogs
GET /api/people
POST /api/people
This endpoint requires a request body in the form of const { name } = req.body.
DELETE /api/people
The API here returns the following status codes:
Status Code | Description |
---|---|
200 | Ok |
201 | Created |
404 | Bad Request |
400 | Not Found |
500 | Internal Server Error |
Start the application npm run start
Start nodemon for the application npm run dev
Run the tests npm run test
View the client repo here. The live api is hosted on Heroku. The live client is hosted with Vercel.
🔭 I’m currently working on mastering data structures and complex algorithms.
🌱 I’m currently learning the fundamentals of Angular.
🤝 I’m looking for help with networking as a new dev in the community.
👨💻 All of my projects are available here
💬 Ask me about the ease of the PERN stack.
📫 The best way to reach me is by email: [email protected]
📄 Check out my resume of experiences
⚡ Fun fact Hiatus Kaiyote is my favorite band at the moment.