File tree 1 file changed +44
-10
lines changed
1 file changed +44
-10
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,45 @@ Clone the repository
8
8
9
9
#### Running the Django Project
10
10
11
- Move into server directory (django)
11
+ > Move into server directory (django):
12
+ ```
13
+ cd server
14
+ ```
15
+
16
+ > Create virtual environment
17
+
18
+ - On WindowsOS
19
+
20
+ ```
21
+ python -m venv <path to venv>
22
+ ```
23
+
24
+ > Activate virtual environment
25
+
26
+ - On WindowsOS
27
+
28
+ - Using bash:
29
+ ```
30
+ source <venv>/Scripts/activate
31
+ ```
12
32
13
- Create virtual environment
33
+ - Using CMD:
34
+ ```
35
+ <venv>\Scripts\activate.bat
36
+ ```
14
37
15
- Activate virtual environment
38
+ - Using PowerShell:
39
+ ```
40
+ <venv>\Scripts\Activate.ps1
41
+ ```
16
42
17
- Install requirements
43
+ > Install requirements
18
44
19
- Run migrations:
45
+ ```
46
+ pip install django djangorestframework django-cors-headers
47
+ ```
48
+
49
+ > Run migrations:
20
50
21
51
```
22
52
python manage.py makemigrations
@@ -26,25 +56,29 @@ python manage.py makemigrations
26
56
python manage.py migrate
27
57
```
28
58
29
- Run on port 8000:
59
+ > Run on port 8000:
30
60
31
61
```
32
62
python manage.py runserver
33
63
```
34
64
35
65
### Running the ReactJS Project
36
66
37
- Move into client directory (ReactJS)
67
+ > Move into client directory (ReactJS)
68
+
69
+ ```
70
+ cd client
71
+ ```
38
72
39
- Install dependencies
73
+ > Install dependencies
40
74
41
75
```
42
76
npm install
43
77
```
44
78
45
- Create .env file using .env.sample
79
+ > Create .env file using .env.sample
46
80
47
- Start the project
81
+ > Start the project
48
82
49
83
```
50
84
npm start
You can’t perform that action at this time.
0 commit comments