i-huzaifa-arshad / Soccer-Game-API

A Django REST Framework based API for Soccer Online Game Manager
0 stars 0 forks source link

Soccer Online Game Manager App API

A Django REST Framework based project for Soccer API app. The API includes features such as user registration, login, player transfer, player buy and more.

Getting Started

Following instructions will help you on how to setup and use this project on your local machine.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/i-huzaifa-arshad/Soccer-Game-API
  2. Navigate to the project directory:

cd Soccer-Game-API
  1. Create a virtual environment:
    • For Ubuntu/Linux:
      python3 -m venv env
      source env/bin/activate
    • For Windows 10/11:
      py -m venv env
      .\env\Scripts\activate
  2. Install the required packages:
    pip install -r requirements.txt
  3. Apply the migrations:
python manage.py migrate
  1. Create a superuser in order to use admin panel:
python manage.py createsuperuser
  1. Run the server:
python manage.py runserver

Swagger API Documentation

Open http://localhost:8000/ or http://127.0.0.1:8000/ when the server is running to see the Swagger API documentation.