β Dogs API, an API made with Express for Dogs πΆ
This is an API made with Express for πΆ Dogs πΆ, the Instagram for dogs. I suggest, if you didn't already, check out that first, then comeback here so you can see how the API works.
This API was made in replacement of the original API from the Origamid's course, which was made with WordPress. This one is made with Node.js, Express and more.
This API is online at this moment!
Deploy made in Heroku πͺ!
πΊ Check out the API routes here:
-
π home: /
-
π₯ users: /users
-
[POST]
Store - /users{ "username": "username", "email": "email@example.com", "password": "password" }
-
[GET]
Show - /users (login required) -
[PUT]
Update - /users (login required){ "username": "username", "email": "email@example.com", "password": "password" }
-
[DELETE]
Delete - /users (login required)
-
-
πΌ photos: /photos
-
[GET]
Index - /photos -
[GET]
Show - /photos/:id -
[POST]
Store - /photos (login required){ "title": "Ex: Dog's name", "src": <file>, "weight": 7, "age": 2 }
-
[DELETE]
Delete - /photos/:id (login required)
-
-
π comments: /comments
-
[GET]
Show - /comments/:id -
[POST]
Store - /comments/:id (login required){ "comment_content": "Ex: This is a comment" }
-
-
π tokens: /tokens
-
[POST]
Store - /tokens{ "username": "username", "password": "password" }
-
This project was developed using the following technologies:
To run this API locally, you'll need Node.js installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/abacaxiguy/dogs_api.git
# Go into the repository
$ cd dogs_api
# Install dependencies
$ npm install # yarn or pnpm
# Run the app
$ npm start # yarn or pnpm
π Congratulations, the API is running in http://localhost:{APP_PORT}
(default: http://localhost:3000
)!
β Remember to fill the APP_PORT
and the others fields in the .env
file, following the .env.example
file β
You can check the API documentation in Insomnia here:
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
- Windows 10 β
- Linux [Ubuntu 18.04.4 LTS] β