https://github.com/yshgroup/django-simple-api
https://github.com/yshgroup/django-simple-api
django django-application django-bootstrap5 django-crud django-rest-framework docker
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yshgroup/django-simple-api
- Owner: YSHgroup
- License: mit
- Created: 2024-03-02T12:27:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-08T04:25:40.000Z (about 1 year ago)
- Last Synced: 2025-02-08T16:13:45.501Z (3 months ago)
- Topics: django, django-application, django-bootstrap5, django-crud, django-rest-framework, docker
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-simple-api
## Collection of the commands for beginer
```
pip install django
django-admin startproject [project name]
cd [project name]
python manage.py startapp [app name]
python manage.py makemigrations
python manage.py migrate
```## pip-tools
```
pip install pip-tools
pip freeze
touch requirements.in
pip-compile --output-file=requirements.txt requirements.in
pip install -r requirements.txt
```## Setting up a project on another machine
From here, you shouldn’t install packages using pip installEvery time you want to add a package, you need to go through the following steps:
- Add the package name to requirements.in
- Compile the requirements using `pip-compile --output-file=requirements.txt requirements.in`
- Install the requirements using `pip install -r requirements.txt`
- Commit both `requirements.txt` and `requirements.in` to your remote repository.
- By committing `requirements.txt` as well as `requirements.in`, you won’t have to recompile the requirements when setting up your project on another machine.## Content
This project consist two sub projects:
- crud_app (Backend and Frontend by built in API module)
- server (Backend by using the DRF)### Server
This project is for using the Django Rest Framework(DRF).- [movie](https://medium.com/@learncodeguide/creating-a-crud-api-with-django-rest-framework-and-postgresql-3ead7ffb140f)