You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-6Lines changed: 35 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,57 @@ For more information on how to this works with other frontends/backends, head ov
15
15
16
16
# How it works
17
17
18
-
> Describe the general architecture of your app here
18
+
> See how the Medium.com clone (called Conduit) is built using Django REST Framework and Angular.
19
19
20
20
# Getting started
21
21
22
22
## Prerequisites
23
+
Ensure you have Python 3 and Node.js installed on your system. The current project dependency versions are:
23
24
- Python 3.10
24
25
- Node.js 18.5.0
25
26
26
27
## Installation
28
+
### 1. Frontend: Choose 1 of 2 ways below:
29
+
- Install frontend dependencies and start frontend locally:
30
+
```shell
31
+
npm --prefix=frontend install
32
+
npm --prefix=frontend start
33
+
```
34
+
This command will install and start the Angular development server. You can access the Angular application through your web browser at `http://localhost:4200`.
35
+
36
+
- Install and build frontend as static files (Choose this if you don't want to make any changes to Frontend project):
37
+
```shell
38
+
npm --prefix=frontend install
39
+
npm --prefix=frontend run build
40
+
```
41
+
42
+
### 2. Backend:
43
+
- Set up a virtual environment
27
44
```shell
28
45
# Install environment and dependencies
29
46
python3 -m venv .venv
30
-
source .venv/bin/activate # or `.venv/Scripts/activate` on Windows
47
+
source .venv/bin/activate
48
+
49
+
# or use this command on Windows
50
+
python3 -m venv .venv
51
+
.venv/Scripts/activate
52
+
```
53
+
54
+
- Install backend dependencies:
55
+
```shell
31
56
pip install -r backend/requirements.txt
57
+
```
32
58
59
+
- Apply database migrations:
60
+
```shell
33
61
# Apply migrations
34
62
python backend/manage.py migrate
63
+
```
35
64
36
-
# Install and build frontend
37
-
npm --prefix=frontend install
38
-
npm --prefix=frontend run build
39
-
65
+
- Run the Django development server:
66
+
```shell
40
67
# Run server
41
68
python backend/manage.py runserver
42
69
```
70
+
71
+
Now, your local server should be running, and you can access this Django/Angular application through your web browser at http://localhost:8000.
0 commit comments