Skip to content

dhythm/basic_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic_django

Creating environment

mkdir backend
cd backend

poetry init
poetry install

poetry add Django
poetry add djangorestframework
poetry add django-cors-headers
poetry run django-admin startproject basic_django .

poetry add --dev black pylint

poetry shell
poetry run python manage.py migrate
poetry run python manage.py runserver

Adding API endpoint

poetry run python manage.py startapp foo
poetry run python manage.py makemigrations
poetry run python manage.py migrate

Getting started

cd frontend
npm install
npm run start

Running App and Api in containers

docker-compose build

docker-compose run -d
docker-compose down

docker run -p 3000:3000 -d basic_django-web_front

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors