Giter Club home page Giter Club logo

story-stream's Introduction

Story Stream API

Welcome to the Story Stream API! This API provides endpoints for managing users, profiles, articles, ratings, bookmarks, and more.

Table of Contents

Introduction

The Story Stream API is designed to handle various functionalities related to user-generated content, including user authentication, profile management, article creation, and interaction through ratings and bookmarks.

Features

  • User Authentication (Login, Registration, Password Reset)
  • User Profile Management
  • Article Creation and Management
  • Rating and Bookmarking System
  • Search Functionality with Elasticsearch

Installation

To get started with the Story Stream API, follow these steps:

Using Docker Compose

All the neccessary commands can be found in "commands.txt"

  1. Clone the repository:

    git clone https://github.com/mahir-bot/Story-Stream.git
    cd Story-Stream
  2. Create and configure environment variables:

    Copy the example environment files and update them with your settings.

    cp .envs/.local/.django.example .envs/.local/.django
    cp .envs/.local/.postgres.example .envs/.local/.postgres
  3. Build and start the Docker containers:

    docker compose -f local.yml up --build -d --remove-orphans
  4. Apply migrations and create a superuser:

    Open a new terminal and run the following commands:

    docker compose -f local.yml run --rm api python manage.py makemigrations
    docker compose -f local.yml run --rm api python manage.py migrate
    docker compose -f local.yml run --rm api python manage.py createsuperuser
  5. Access the application:

    • The API will be available at http://localhost:8080/api/v1/
    • The Django admin will be available at http://localhost:8080/supersecret/
    • The API documentation (Redoc) will be available at http://localhost:8080/redoc/
    • Elasticsearch will be available at http://localhost:9200/
    • PgAdmin will be available at http://localhost:5050/
    • MailHog will be available at http://localhost:8025/
    • Flower will be available at http://localhost:5555/

Without Docker

If you prefer not to use Docker, you can set up the project manually:

  1. Create a virtual environment and activate it:

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
  2. Install the dependencies:

    pip install -r requirements.txt
  3. Apply migrations:

    python manage.py migrate
  4. Run the development server:

    python manage.py runserver

Usage

You can use the API endpoints to interact with the Story Stream platform. Below are some example endpoints:

  • User Details: /api/v1/auth/user/
  • User Registration: /api/v1/auth/registration/
  • Password Reset Confirm: /api/v1/auth/password/reset/confirm/<uidb64>/<token>/
  • Profiles: /api/v1/profiles/
  • Articles: /api/v1/articles/
  • Ratings: /api/v1/ratings/
  • Bookmarks: /api/v1/bookmarks/
  • Responses: /api/v1/responses/
  • Elasticsearch: /api/v1/elastic/

API Documentation

For detailed API documentation, please visit Story Stream API Documentation.

Contributing

We welcome contributions! Please read our Contributing Guidelines for more information on how to get started.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Thank you for using the Story Stream API! If you have any questions or need further assistance, feel free to open an issue or contact us at [email protected].

story-stream's People

Contributors

mahir-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.