Skip to content

Estoda/SWE_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Shopping Website API

Installation Instructions

  1. Clone the repository:

    git clone https://github.com/Estoda/SWE_Project.git
    cd ShoppingWebsite
    
  2. Create a virtual environment:

    python -m venv myenv
    source myenv/bin/activate
    
  3. Install dependencies:

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

    python3.11 manage.py migrate
    
  5. Create a superuser (optional if you want to access Django admin):

    python3.11 manage.py createsuperuser
    
  6. Run the development server:

    python3.11 manage.py runserver
    
  7. API should now be accessible at http://127.0.0.1:8000/

Endpoints

  1. http://127.0.0.1:8000/register/ - Register a new user
  2. http://127.0.0.1:8000/login/ - Log in and get an authentication token

Dependencies

  1. Django==4.2.14
  2. djangorestframework==3.15.2
  3. djangorestframework-simplejwt==5.3.1
  4. mysqlclient==2.2.4
  5. virtualenv==20.26.3

Example Input/Output:

About

API for my Software Engineering course project

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages