This API allows users to register, log in, create stories, contribute to stories, and export stories as PDFs or images. It is built using Django and Django REST Framework.
- User Registration and Login: Users can register and log in using JWT tokens.
- Story Management: Users can create, view, update, and delete stories.
- Contributions: Users can contribute two-line content to a story.
- Exporting Stories: Stories can be exported as PDFs or images.
-
Clone the repository:
git clone https://github.com/kksain/fun_game_story_creator.git cd story_creator
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser (optional):
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Start Celery worker (for exporting tasks):
celery -A story_creator worker --loglevel=info