Giter Site home page Giter Site logo

binah25 / talent_sync_assessment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.61 MB

The primary goal of this project is to provide a robust backend solution for a modern blogging platform. The API supports essential functionalities such as user registration, authentication, and authorization, allowing users to create, read, update, and delete blog posts seamlessly.

Python 97.01% PowerShell 0.06% Shell 0.02% CSS 0.77% JavaScript 0.87% HTML 1.28%

talent_sync_assessment's Introduction

talent_sync_assessment

The Django Blogging Platform API is a powerful and flexible RESTful API built on the Django framework and Django Rest Framework (DRF). The primary goal of this project is to provide a robust backend solution for a modern blogging platform. The API supports essential functionalities such as user registration, authentication, and authorization, allowing users to create, read, update, and delete blog posts seamlessly

Key Features

User Authentication and Authorization

  1. User Registration: New users can effortlessly register by providing necessary details (username and password).
  2. User Login: Existing users can securely log in to the platform.
  3. JWT Authentication: The API implements JSON Web Token (JWT) authentication to ensure secure user sessions.
  4. Permissions: only users who have authorize permissions can create read update and delete a post.

Blog Post Management

  1. Create Posts: Authenticated and authorized users can craft engaging blog posts by providing a title,content and author.
  2. Read Posts: Authenticated and authorized users can retrieve blog posts.
  3. Update Posts: Authenticated and authorized users have the ability to edit the content and title of their own blog posts.
  4. Delete Posts: Authenticated and authorized users users can delete their own blog posts.

Structured Data Model

The project includes a well-defined data model that represents blog posts. Each post comprises a title, content, author, and a timestamp for tracking post creation.

RESTful Endpoints

The API adheres to RESTful principles with clear and concise endpoints for user authentication and blog post management.

Language and Libraries

Python 3.9 Django 5.0.1

Usage Guidelines

  1. Clone the Repository:
    git clone https://github.com/BINAH25/talent_sync_assessment.git
    cd talent_sync_assessment
    
  2. Create Virtual Environment:
    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    
  3. Install the requires packages:
    cd assessment
    pip install -r requirements.txt
    python manage.py makemigrations
    python manage.py migrate
  4. User registration endpoint:
    http://127.0.0.1:8000/api/sign_up/
  5. User login endpoint:
    http://127.0.0.1:8000/api/login/
    
  6. Create post and get all posts endpoint:
    http://127.0.0.1:8000/api/post/
  7. get a post endpoint:
    http://127.0.0.1:8000/api/post/post_id/
    (e.g http://127.0.0.1:8000/api/post/1/)
  8. update a post endpoint:
    http://127.0.0.1:8000/api/post/post_id/
    (e.g http://127.0.0.1:8000/api/post/1/)
  9. delete a post endpoint:
    http://127.0.0.1:8000/api/post/post_id/
    (e.g http://127.0.0.1:8000/api/post/1/)
  10. assign and revoke a user permission endpoint:
    http://127.0.0.1:8000/api/post/assign-permissions/
    http://127.0.0.1:8000/api/post/revoke-permissions/

Fields for user registration

image ### Fields for user login image ### Fields for creating a post image ### getting all posts image ### retrieve a post image ### delete a post image ### give permission to a user image ### revoke user permission image

talent_sync_assessment's People

Contributors

binah25 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.