This is a Django project for an ecommerce website.
The project structure is as follows:
ecommerce/
├── ecommerce/
├── shop/
├── static/
├── db.sqlite3
├── manage.py
├── package.json
├── Pipfile
└── tailwind.config.js
ecommerce/
: Contains the project settings and URL configurations.shop/
: Contains the product catalog functionality.static/
: Contains the static files (CSS, JS, images, etc.).db.sqlite3
: The SQLite database file.manage.py
: The Django management script.package.json
: NPM dependencies.Pipfile
: Python dependencies.tailwind.config.js
: Tailwind CSS configurations.
To run the development server, follow these steps:
-
Clone the repository by running the following command:
git clone https://github.com/Hasib105/ecommerce-django-.git
-
Navigate to the project directory:
cd ecommerce-django-
-
Install pipenv if you haven't already:
pip install pipenv
-
Create a virtual environment and install the dependencies:
pipenv install
-
Activate the virtual environment:
pipenv shell
-
Install the NPM dependencies:
npm install
-
Run the following command to watch for Tailwind CSS changes:
npm run tailwind-watch
-
In a new terminal window, navigate to the project directory and run the following command to start the Django development server:
python manage.py runserver
-
Open your web browser and go to
http://localhost:8000
to view the website.
To clone the repository, run the following command:
git clone https://github.com/Hasib105/ecommerce-django-.git
To pull the latest changes from the repository, run the following command:
git pull
To push your changes to the repository, run the following commands:
git add .
git commit -m "Your commit message"
git push
To contribute to the project, follow these steps:
- Fork the repository.
- Clone your forked repository.
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Create a pull request to merge your changes into the main repository.
- To auto reload development server on html change, django-browser-reload package works effectively.
- To format, highlight & autocomplete django templates in vscode, junstyle.vscode-django-support is a decent extension.