- Docker
- Make
-
Navigate to the project directory:
cd rss-reader
-
Build and start the application:
make build make up
ps: You can also run unit tests after building:
make test
-
Access the API documentation: Open your browser and go to
http://0.0.0.0:8000/docs
. -
Register a new user:
- Click on the "Register" endpoint in the API documentation.
- Fill in the required fields and click "Try it out!".
- Take note of the generated access token.
-
Authorize API requests:
- Click on the "Authorize" button on the top right corner of the API documentation.
- Enter the access token obtained from the registration step.
- Click "Authorize" to enable authorization for API requests.
-
Start using the API endpoints:
- Explore the available endpoints in the API documentation.
- Click on an endpoint to expand its details.
- Fill in the required parameters and click "Try it out!" to make a request.
-
Register an RSS URL:
- Make a POST request to the
feed
endpoint in the API documentation. - Provide the necessary parameters, such as the RSS URL.
- Click "Try it out!" to register the RSS URL to the system.
- Make a POST request to the
-
Subscribe to a feed:
- After registering an RSS URL, make a POST request to the
subscribe
endpoint. - Provide the necessary parameters, such as the feed ID.
- make the request to subscribe to a feed.
- After registering an RSS URL, make a POST request to the
-
Get your feed:
- Once you have subscribed to a feed, you can retrieve it by making a GET request to the correct URL.
- Replace the placeholder in the URL with the feed ID.
- make the request to get your feed.
-
Force refresh:
- If you don't want to wait for background tasks to finish, you can force refresh a feed by making a POST request to the
force-refresh
endpoint. - Provide the necessary parameters, such as the feed ID.
- make the request
- If you don't want to wait for background tasks to finish, you can force refresh a feed by making a POST request to the
-
Mark feeds as read or unread:
- To mark a feed as read, make a POST request to the "mark-read" endpoint.
- Provide the necessary parameters, such as the feed ID.
- Click "Try it out!" to mark the feed as read.
- To mark a feed as unread, make a POST request to the "mark-unread" endpoint.
- Provide the necessary parameters, such as the feed ID.
- make the request
You can explore api docs for othe possible actions you can take (e.g unsubscribe) or you can check out makefile
to see available useful developer commands for inspection.