Skip to content

Latest commit

 

History

History
76 lines (39 loc) · 1007 Bytes

README.md

File metadata and controls

76 lines (39 loc) · 1007 Bytes

promocao_api

====================Uso==================================

cd ~

git clone https://github.com/iago-mansur/promocao_api.git

cd promocao_api

docker-compose up -d

http://127.0.0.1:8000/

==================Desenvolvimento========================

mkdir promocao_api

cd promocao_api

python --version

python3 -m venv .venv

. .venv/bin/activate

pip install django

pip install djangorestframework

django-admin startproject promocao_api .

python manage.py runserver

http://127.0.0.1:8000/

CONTROL-C

django-admin startapp api

pip freeze > requirements.txt

python manage.py migrate

python manage.py createsuperuser

admin / [email protected] / 123456 / y

atualizar settings.py

atualizar model.py

atualizar admin.py

python manage.py makemigrations

python manage.py migrate

python manage.py runserver

criar serializer.py

criar views.py

criar router.py

editar urls.py

python manage.py migrate

python manage.py runserver

Select Interpreter

Recommended

editar requirements.txt