@@ -56,6 +56,16 @@ $ cd django-react-starter
5656
5757<br />
5858
59+ ### 👉 Build ` React Frontend `
60+
61+ ``` bash
62+ $ yarn # Install React
63+ $ yarn dev # development build (with LIVE Reload)
64+ $ yarn build # production build
65+ ```
66+
67+ <br />
68+
5969### 👉 Set Up for ` Unix ` , ` MacOS `
6070
6171> Install modules via ` VENV `
@@ -88,38 +98,28 @@ At this point, the app runs at `http://127.0.0.1:8000/`.
8898
8999<br />
90100
91- ### 👉 Set Up for ` Windows `
92-
93- > Install modules via ` VENV ` (windows)
94-
95- ```
96- $ virtualenv env
97- $ .\env\Scripts\activate
98- $ pip3 install -r requirements.txt
99- ```
100-
101- <br />
102-
103- > Set Up Database
104-
105- ``` bash
106- $ python manage.py makemigrations
107- $ python manage.py migrate
108- ```
109-
110- <br />
111-
112- > Start the APP
113-
114- ``` bash
115- $ python manage.py createsuperuser # create the admin
116- $ python manage.py runserver # start the project
101+ ## ` Charts ` Provisioning
102+
103+ Open the Django shell and create manually new records:
104+
105+ ``` python
106+ $ python manage.py shell
107+ >> > from apps.home.models import Sales
108+ >> > s1 = Sales() # use the default country `USA`
109+ >> > s2 = Sales() # use the default country `USA`
110+ >> >
111+ >> > s3 = Sales()
112+ >> > s3.country = ' ger' # a sale from Germany
113+ >> > s3.save()
114+ >> >
115+ >> > s4 = Sales()
116+ >> > s4.country = ' france' # a sale from France
117+ >> > s4.save()
117118```
118119
120+ Once the information is saved, the ` /charts ` route should render the information:
119121
120- At this point, the app runs at ` http://127.0.0.1:8000/ ` .
121-
122- <br />
122+ ![ Django & ReCharts] ( https://user-images.githubusercontent.com/51070104/230713648-a55e1ccf-ddc6-4d65-b7b3-d840a8a7e254.png )
123123
124124<br />
125125
0 commit comments