Skip to content

iago-mansur/promocao_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published