Table of Contents
- Adding your amazing stories to feed and show them for other users.
- Editing your post if you want to make it perfect.
- Watching other users' posts.
- Adding your posts to thematic groups.
- python 3.9.19
- pip
- Clone the repo
$ git clone https://github.com/Alexandr-Safariantc/post_feed
- Activate virtual environment
$ cd post_feed $ python3 -m venv venv
- for Linux/macOS
$ source .venv/bin/activate
- for windows
$ source .venv/scripts/activate
-
Upgrade pip
(venv) $ python3 -m pip install --upgrade pip
-
Install requirements
(venv) $ pip install -r requirements.txt
-
Migrate database
(venv) $ alembic upgrade head
-
Add test data to database
(venv) $ python3 cli.py test-data
-
Run app
(venv) $ uvicorn main:app --reload
-
Get API documentation
http://127.0.0.1:8000/docs
SECRET_KEY
: key for user password encoding.
User
Contains creation date, user data.
Group
Contains creation date, description, slug, title.
Post
Contains post author, post group, publication date, text, title.
1. Groups for superusers
We know that you have lots of brilliant ideas for thematic post groups but we have to save resources to ensure all your wonderful posts are featured in our feed.
2. Titles are required
We really want to meet your expectations so to make it easier and faster to find exciting post you have to add title to your post.
1. Comments
We really appreciate your opinion and we want you to have opportunity to express it, so we are going to add a post commenting feature.
2. Subscriptions
We know that you have found your favorite authors in our post feed and we want you to receive their posts first, new author subscription feature will help you.
Alexandr Safariants Backend developer