Skip to content

Commit 47a176e

Browse files
committed
📝 add readme
1 parent 56b6dc5 commit 47a176e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Build an API with Django and Nextjs
2+
3+
This is a simple example of how to build an API with Django, React, and Docker. You can find the
4+
article concerning this code here on my [blog](https://koladev.xyz/posts/django-nextjs-crud/).
5+
6+
## Starting with Django and React
7+
8+
First launch the API server.
9+
10+
```bash
11+
cd django-api-nextjs
12+
pip install -r requirements.txt
13+
14+
python manage.py migrate
15+
python manage.py runserver
16+
```
17+
18+
The API server will be available at `http://localhost:8000/`.
19+
20+
Then launch the React client.
21+
22+
```bash
23+
cd menu-frontend
24+
npm install
25+
npm run dev
26+
```
27+
28+
The React client will be available at `http://localhost:3000/`.
29+
30+
Feel free to open issues on the [GitHub repository](https://github.com/koladev32/django-api-nextjs) if you have any questions.

0 commit comments

Comments
 (0)