Skip to content

chafaaouchaou/E-commerce-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Project Name: E-commerce Website

Description:

This is a full-stack e-commerce website built using Django and React. The backend (API) utilizes Django REST Framework for robust API development. The frontend leverages React for a dynamic and user-friendly shopping experience.

🌐 Live demo: https://ecom.chafaaouchaou.online/

Technologies:

  • Backend:
    • Python
    • Django
    • Django REST Framework
  • Frontend:
    • React
    • React Router
    • Axios

Prerequisites:

Installation:

  1. Backend (Django):

    • Clone this repository: git clonehttps://github.com/chafaaouchaou/E-commerce-website.git
    • Navigate to the project directory:
    • Create a virtual environment (recommended): python -m venv venv
    • Activate the virtual environment: source venv/bin/activate (Windows: venv\Scripts\activate)
    • Install required dependencies: pip install -r ecom/requirements.txt
    • Apply database migrations (create tables): python manage.py makemigrations followed by python manage.py migrate
    • Run the development server: python manage.py runserver (This will typically start the server at https://ecomapi.chafaaouchaou.online/)
  2. Frontend (React):

    • Open a separate terminal/command prompt.
    • Navigate to the frontend directory
    • Install project dependencies: npm install
    • Start the development server: npm run dev

Running the Application:

  1. Development:

    • With both backend and frontend servers running, you can access your application in the browser at the URLs mentioned in the installation step.
    • Make changes to the codebase and the servers will automatically reload, reflecting your updates.
  2. Production:

    • Refer to Django and React documentation for deployment instructions specific to your chosen hosting platform. This typically involves configuring production settings, potentially building static assets for the frontend, and deploying to a web server.

Additional Notes:

Contribution:

  • Feel free to create pull requests for improvements or bug fixes.

About

a full-stack e-commerce website built using Django and React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published