Skip to content

A web services for feeding Stories with image and text content. These APIs with perform add, update and delete the stories into the server.

License

Notifications You must be signed in to change notification settings

indrajitkumar/StoriesFeedAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StoriesFeedAPI

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

Install virtual environment

sudo apt install python-virtualenv

Setup virtual environment with python 3.6+

virtualenv venv -p python3

Install python dependencies

pip install -r requirements.txt

Migrate database

python manage.py makemigrations stories_api
python manage.py migrate
If Sync reuired,then use python manage.py migrate --run-syncdb

Run server

python manage.py runserver 0.0.0.0:5000

Test on browser

http://localhost:5000

##To run on EC2 instance ssh ubuntu@ec2-3-6-41-100.ap-south-1.compute.amazonaws.com

Install all required dependencies in EC2 instance by

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.

About

A web services for feeding Stories with image and text content. These APIs with perform add, update and delete the stories into the server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published