File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments