Skip to content

ahmedelfateh/buybay_ecommerce

Repository files navigation

👜 Buy Bay 🌊

E-commerce app with Django for Fun!

BuyBay

Cookiecutter Django Black code style License: unlicense

Template

Used Template.

Settings

Moved to settings.

Basic Commands

Setting Up Your Users

  • To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.

  • To create an superuser account, start in the root folder and use this command:

    $ docker-compose -f ./local.yml run --rm app ./manage.py migrate createsuperuser
    

For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.

  • To run any django command inside the docker environment, start in the root folder and use this command:

    $ docker-compose -f ./local.yml run --rm app ./manage.py migrate **...django_command...**
    

Deployment

The following details how to deploy this application.

Heroku

See detailed cookiecutter-django Heroku documentation.

Docker

See detailed cookiecutter-django Docker documentation.