@@ -15,7 +15,7 @@ This is an enterprise website template built using **React 18** (with **TypeScri
15
15
- [ Copyright and License] ( #copyright-and-license )
16
16
17
17
18
- ### Prerequisites
18
+ ## Prerequisites
19
19
20
20
Install the following prerequisites:
21
21
@@ -25,9 +25,9 @@ Install the following prerequisites:
25
25
3 . [ Visual Studio Code] ( https://code.visualstudio.com/download )
26
26
27
27
28
- ### Installation
28
+ ## Installation
29
29
30
- #### Backend
30
+ ### Backend
31
31
32
32
#### 1. Create a virtual environment
33
33
@@ -85,7 +85,7 @@ python manage.py createsuperuser
85
85
86
86
When prompted, enter a username, email, and password.
87
87
88
- #### Frontend
88
+ ### Frontend
89
89
90
90
#### 1. Install required frontend dependencies
91
91
@@ -98,35 +98,33 @@ cd frontend
98
98
npm install
99
99
```
100
100
101
-
102
- ### Run the application
101
+ ## Run the application
103
102
104
103
To run the application, you need to have both the backend and the frontend up and running.
105
104
106
- #### 1. Run backend
105
+ ### 1. Run backend
107
106
108
107
From the ** backend** directory, run:
109
108
110
109
``` bash
111
110
python manage.py runserver
112
111
```
113
112
114
- #### 2. Run frontend
113
+ ### 2. Run frontend
115
114
116
115
From the ** frontend** directory, run:
117
116
118
117
``` bash
119
118
npm start
120
119
```
121
120
122
- #### 3. View the application
121
+ ## View the application
123
122
124
123
Go to http://localhost:3000/ to view the application.
125
124
125
+ ## Run the tests
126
126
127
- ### Run the tests
128
-
129
- #### 1. Run the backend tests
127
+ ### 1. Run the backend tests
130
128
131
129
From the ** backend** directory, run:
132
130
@@ -135,27 +133,25 @@ python manage.py test --pattern="tests.py"
135
133
136
134
```
137
135
138
- #### 2. Run the frontend tests
136
+ ### 2. Run the frontend tests
139
137
140
138
From the ** frontend** directory, run:
141
139
142
140
``` bash
143
141
npm run test
144
142
```
145
143
146
-
147
- ### Add data to the application
144
+ ## Add data to the application
148
145
149
146
Add data through Django Admin.
150
147
151
148
Go to http://127.0.0.1:8000/admin to access the Django Admin interface and sign in using the admin credentials.
152
149
153
-
154
- ### Customize the application
150
+ ## Customize the application
155
151
156
152
This section describes how to customize the application.
157
153
158
- #### Changing Section Titles and Subtitles
154
+ ### Changing Section Titles and Subtitles
159
155
160
156
#### 1. Products
161
157
@@ -177,7 +173,7 @@ To modify the title and subtitle of the **About** section, make changes in the `
177
173
178
174
To modify the title and subtitle of the ** Contact** section, make changes in the ``` frontend/src/components/Contact.tsx ``` file.
179
175
180
- #### Changing Colors
176
+ ### Changing Colors
181
177
182
178
To modify the colors in the application, make changes in the ``` frontend/src/theme/theme.ts ``` file.
183
179
@@ -193,7 +189,6 @@ To modify the logo in the application, make changes in the ```frontend/src/layou
193
189
194
190
To modify the two buttons in the Hero section, make changes in the ``` frontend/src/components/HeroButtons.tsx ``` file.
195
191
196
-
197
- ### Copyright and License
192
+ ## Copyright and License
198
193
199
194
Copyright © 2022 Bob's Programming Academy. Code released under the MIT license.
0 commit comments