A web services for feeding Stories with image and text content. These APIs with perform add, update and delete the stories into the server.
It contains, User authentication and permission to add feed with image by authenticated user.
This can be helpful to learn the Rest API implementation in Python Django-rest Framework.
Setup project and run with following steps
sudo apt install python-virtualenv
virtualenv venv -p python3
pip install -r requirements.txt
python manage.py makemigrations stories_api
python manage.py migrate
If Sync reuired,then use
python manage.py migrate --run-syncdb
python manage.py runserver 0.0.0.0:5000
##To run on EC2 instance ssh ubuntu@ec2-3-6-41-100.ap-south-1.compute.amazonaws.com
curl -sL https://raw.githubusercontent.com/indrajitkumar/StoriesFeedAPI/master/deploy/setup.sh | sudo bash -
You can see project in EC2 instance:
cd /usr/local/apps
then
sudo sh ./deploy/update.sh
for updating the changes from git and restart the server after migration of database.