Advanced eCommerce example web application with Django and React
Setup environment for development
Clone the project then install python and react dependencies
git clone https://github.com/amirahrari/django-react-ecommerce.git
cd django-react-ecommerce
pip install -r requirements.txt
yarn # or npm install
Add built in dummy data
Create database, apply migrations and add some dummy data
python add_dummy_data.py
yarn run dev
python manage.py runserver
python manage.py livereload # hot reload
Admin user has been created in users.json
You can access the admin pannel from http://localhost:8000/admin/
phone number: 09171234567
password: password
Deploy with docker using postgresql, gunicorn and nginx.
cp .env.sample .env
cp .env.db.sample .env.db
docker-compose build
docker-compose up -d
docker-compose exec web python manage.py collectstatic --no-input
docker-compose exec web python add_dummy_data.py
You are good to go. Open your server ip address on port 80 (Ex on localhost: http://127.0.0.1).