Pentagram Blog App; It is a small-scale social media application.
In this project the user can:
-User can register, login, logout,
-User can share, update, delete posts,
-User can comment, update, delete,
-User can like or dislike the posts,
- Clone the repo:
-git clone https://github.com/hilaldedek/pentagram_blog-app.git
- Frontend:
-cd client\blog
-yarn install
-npm run serve
- Backend:
-cd api
-python -m venv env
-Windows: .\env\Scripts\activate
-MacOS: source env/bin/activate
-pip install -r requirements.txt
-Create a config.py file in the api directory and paste the following codes into it. Don't forget to create your own key in YOUR_SECRET_KEY! :
```
from datetime import timedelta
class BaseConfig(object):
DEBUG = False
JWT_SECRET_KEY = 'YOUR_SECRET_KEY'
JWT_ACCESS_TOKEN_EXPIRES = timedelta(hours=1)
class DevelopmentConfig(BaseConfig):
DEBUG = True
class ProductionConfig(BaseConfig):
DEBUG = False
config = DevelopmentConfig
```
-flask --app app run --debug
4.Database:
-Install MongoDB step by step according to the platform you use from the link below: