diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md deleted file mode 100644 index 21c8b4f..0000000 --- a/DEVELOPER_GUIDE.md +++ /dev/null @@ -1,29 +0,0 @@ -## Developer Guide - -#### command to grant privileges to the root user in MySQL or MariaDB: - -``` -mysql -u root -p ddice_online_shop_database -``` - -``` -ddice -``` -> Password: ddice (same as settings.py) - -``` -GRANT ALL PRIVILEGES ON ddice_online_shop_database.* TO root@'%'; -SHOW GRANTS FOR 'root'; -``` - -#### command to fix Nginx Bad Gateway: - -``` -sudo netstat -nlp | grep 8000 -``` - -if the PID of that process was 12345, you would use `sudo kill 12345` to terminate that process. - -``` -sudo kill 12345 -``` \ No newline at end of file diff --git a/FIRST_SETUP_GUIDE.md b/FIRST_SETUP_GUIDE.md index 044a50c..52f19ed 100644 --- a/FIRST_SETUP_GUIDE.md +++ b/FIRST_SETUP_GUIDE.md @@ -39,4 +39,45 @@ Access the manage.py command from the code-app terminal: ``` python manage.py loaddata dumped_data.json ``` -> restore dumped data from dumped_data.json \ No newline at end of file +> restore dumped data from dumped_data.json + +
+ +**Done!** Your first-time setup is now completed. + +
+
+ +#### Other useful command: + +- [grant privileges to the root in mysql](#command-to-grant-privileges-to-the-root-user-in-mysql-or-mariadb) + +- [fix Nginx Bad Gateway](#command-to-fix-nginx-bad-gateway) + +##### command to grant privileges to the root user in MySQL or MariaDB: + +``` +mysql -u root -p ddice_online_shop_database +``` + +``` +ddice +``` +> Password: ddice (same as settings.py) + +``` +GRANT ALL PRIVILEGES ON ddice_online_shop_database.* TO root@'%'; +SHOW GRANTS FOR 'root'; +``` + +##### command to fix Nginx Bad Gateway: + +``` +sudo netstat -nlp | grep 8000 +``` + +if the PID of that process was 12345, you would use `sudo kill 12345` to terminate that process. + +``` +sudo kill 12345 +``` \ No newline at end of file diff --git a/README.md b/README.md index c49cb4d..7a0dbb5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,43 @@ -# ddice online shop docker django mysql +## Online Ecommerce Shop example using Docker Django Mysql -work in progress.. +preview: [ddice.pythonanywhere.com](https://ddice.pythonanywhere.com/) + +
+ +![banner](banner.png) + +
+ +
+ +highlight feature: + +- Filter product form +- Add to Cart, Remove from Cart +- Product summary +- Checkout form +- Guest Account + +
+ +### Installation + +clone this repository: + +``` +git clone https://github.com/kritserv/online_shop_docker_django_mysql.git +``` + +Setup container using Docker compose. + +Also follow [First setup guide](FIRST_SETUP_GUIDE.md#first-time-setup-guide). + +> **Don't skip** this guide, Django Will **Not** Run Properly If Skipped! + +
+
+ +### Other useful command: + +- [grant privileges to the root in mysql](FIRST_SETUP_GUIDE.md#command-to-grant-privileges-to-the-root-user-in-mysql-or-mariadb) +- [fix Nginx Bad Gateway](FIRST_SETUP_GUIDE.md#command-to-fix-nginx-bad-gateway) \ No newline at end of file diff --git a/README.md.backup b/README.md.backup new file mode 100644 index 0000000..7a0dbb5 --- /dev/null +++ b/README.md.backup @@ -0,0 +1,43 @@ +## Online Ecommerce Shop example using Docker Django Mysql + +preview: [ddice.pythonanywhere.com](https://ddice.pythonanywhere.com/) + +
+ +![banner](banner.png) + +
+ +
+ +highlight feature: + +- Filter product form +- Add to Cart, Remove from Cart +- Product summary +- Checkout form +- Guest Account + +
+ +### Installation + +clone this repository: + +``` +git clone https://github.com/kritserv/online_shop_docker_django_mysql.git +``` + +Setup container using Docker compose. + +Also follow [First setup guide](FIRST_SETUP_GUIDE.md#first-time-setup-guide). + +> **Don't skip** this guide, Django Will **Not** Run Properly If Skipped! + +
+
+ +### Other useful command: + +- [grant privileges to the root in mysql](FIRST_SETUP_GUIDE.md#command-to-grant-privileges-to-the-root-user-in-mysql-or-mariadb) +- [fix Nginx Bad Gateway](FIRST_SETUP_GUIDE.md#command-to-fix-nginx-bad-gateway) \ No newline at end of file diff --git a/banner.png b/banner.png new file mode 100644 index 0000000..8b03ba0 Binary files /dev/null and b/banner.png differ