- Django 4.1 & Python 3.8
- No users, only sessions !
- Caching with redis
- Simple API for checking commerce stats
- Styling with Bootstrap v5 (static files are in branch "with_static_files")
- Testing with Pytest
- Swagger UI for API documentation and testing
- Easy to manage admin panel
- More than half of the views are written in generics.
someMarket can be installed via pip and Docker. To start, clone the repo to your local computer and change into the proper directory.
Remember, static files are in the branch 'with_static_files'. If you want to use it, just pull this branch to your local machine.
!!! Before start project you need to install Redis, see how you can do it here !!! (or disable caching in project)
$ git clone https://github.com/lilchiken/ecommerce-django-project.git
$ cd ecommerce-django-project
Dont forget start redis.
# Windows
$ python -m venv .venv
# macOS
$ python3 -m venv venv
# Windows
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ .venv\Scripts\Activate.ps1
# macOS
$ source .venv/bin/activate
(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py migrate
(.venv) $ python manage.py makemigrations
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000
You can see structure docker project in branch "docker".
Staticfiles are deployed.
Admin already created.
Username: admin
Password: admin
$ docker pull lilchiken/ecommerce-django-project
$ docker run -d --name ecommerce-django-project -p 80:80 lilchiken/ecommerce-django-project
# Load the site at http://localhost:80
- Check Pytest local.
- Develop payment methods that you want to see in the project.
- Add gunicorn or other web server before production.
- Configure permissions in API viewset.
- Play with site on Docker and feedback me. :)
- Make the admin more secure.
Contributions, issues and feature requests are welcome! ;)
Give a ⭐️ if this project helped you!