Coder Social home page Coder Social logo

abdullahbakir97 / api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 70 KB

Django application that includes authentication functionalities such as signup, login, logout, password change, password reset, and related CRUD operations for teams, players, matches, fantasy teams, contests, and contest entries.

License: MIT License

Python 100.00%
api django django-rest-framework python swagger users dj-rest-auth

api's Introduction

Django Project

This project is a Django application that includes authentication functionalities such as signup, login, logout, password change, password reset, and related CRUD operations for teams, players, matches, fantasy teams, contests, and contest entries. It also includes serializers for API endpoints and filters for querying data.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Python (3.x recommended)
  • pip (Python package installer)

Installing

  1. Clone the Repository: Start by cloning the project repository:

    git clone https://github.com/AbdullahBakir97/API.git
    
  2. Navigate to the Project Directory: Move into the project directory:

    cd API
    
  3. Create and Activate a Virtual Environment: Set up a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    
  4. Install Required Dependencies: Install the necessary dependencies for the project:

    pip install -r requirements.txt
    
  5. Apply Database Migrations: Apply database migrations to set up the database:

    python manage.py migrate
    
  6. Create a Superuser Account: Create a superuser account for administrative access:

    python manage.py createsuperuser
    
  7. Start the Development Server: Launch the development server:

    python manage.py runserver
    
  8. Access the Admin Panel: Begin configuring your online store by accessing the admin panel at http://localhost:8000/admin/.

API Endpoints

The following API endpoints are available:

  • Swagger: /swagger/
  • Signup: /accounts/signup/ (POST)
  • Login: /accounts/login/ (POST)
  • Logout: /accounts/logout/ (POST)
  • Change Password: /accounts/change-password/ (POST)
  • Password Reset: /accounts/reset-password/ (POST)
  • Password Reset Confirm: /accounts/reset-password/confirm/ (POST)
  • Teams List/Create: /teams/ (GET, POST)
  • Team Detail/Update/Delete: /teams// (GET, PUT, DELETE)
  • Players List/Create: /players/ (GET, POST)
  • Player Detail/Update/Delete: /players// (GET, PUT, DELETE)
  • Matches List/Create: /matches/ (GET, POST)
  • Match Detail/Update/Delete: /matches// (GET, PUT, DELETE)
  • Fantasy Teams List/Create: /fantasy-teams/ (GET, POST)
  • Fantasy Team Detail/Update/Delete: /fantasy-teams// (GET, PUT, DELETE)
  • Contests List/Create: /contests/ (GET, POST)
  • Contest Detail/Update/Delete: /contests// (GET, PUT, DELETE)
  • Contest Entries List/Create: /contest-entries/ (GET, POST)
  • Contest Entry Detail/Update/Delete: /contest-entries// (GET, PUT, DELETE)

Authors

License

This project is licensed under the MIT License.

api's People

Contributors

abdullahbakir97 avatar

Stargazers

 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.