E- commerce site built using django.
1. Git Clone the project with:
git clone https://github.com/sr-sweta/My-Awesome-Cart.git
2. Create a new python enveronment with:
python -m venv env
OR
conda create --name venv python
3. Activate enveronment with:
activate venv
4. Install required dependences with:
pip install -r requirements.txt
OR
conda install --file requirements.txt
5. Move to the base directory:
cd MYAWESOMECART
6. Add your Paytm Merchant id to the MERCHANT_KEY in file MyAwesomeCart\shop\views.py.
7. Make migrations with:
python manage.py makemigrations
then
python manage.py migrate
8. Run app localy with:
python manage.py runserver
1. Fork the My-Awesome-Cart repository.
2. Clone the forked repository.
git clone https://github.com/sr-sweta/My-Awesome-Cart.git
3. Navigate to the project directory.
cd MYAWESOMECART
4. Creating a new branch (IMP)
$ git branch <name_of_branch>
$ git checkout -b <name_of_branch>
Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
git pull origin main
5. Make changes in source code.
6. Stage your changes and commit
# Add changes to Index
git add .
# Commit to the local repo
git commit -m "<your_commit_message>"
7. At this point you can use the git push command to push the changes to the current branch of your forked repository:
git push origin <branch-name>
8. Create a PR !