https://github.com/its-kumar/django-rest-project
https://github.com/its-kumar/django-rest-project
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/its-kumar/django-rest-project
- Owner: its-Kumar
- Created: 2020-11-11T17:15:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-11T17:43:56.000Z (over 5 years ago)
- Last Synced: 2025-03-13T07:35:10.389Z (about 1 year ago)
- Language: Python
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-rest-project
## TODO App
Build simple ToDo web application using django-rest framework and javascript frontend using CRUD functionality.
## Screenshot

## Steps
1. `pip install django`
2. `pip install djangorestframework`
3. `python manage.py startproject project_name`
4. `python manage.py startapp api`
5. Add newely created app(api) to INSTALLED_APPS
```
INSTALLED_APPS = [
.....
'api',
....
'frontend',
]
```
6. create `searializers.py` file and create serializers for models
7. create api views in `views.py` using CRUD and add urls to `/api/` path
8. create frontend\
`python manage.py startapp frontend`
9. create template for frontend and add frontend code
10. finally create database and runserver
```bash
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
```
## Author
[Kumar Shanu](https://github.com/its-kumar/)