Skip to content

mnboos/django-vue3-template

Repository files navigation

A client-server project template based on a Django backend and Vue.js 3 frontend.

Installation

Backend

  • Install and configure Poetry
pip install --user poetry

# you may have to add the install folder `%appdata%\Python\Python310\Scripts` to your PATH environment variable (on windows)

See Installation for the official guide.

  • Install the dependencies
cd backend

poetry install

# Then install the pre-commit hooks
pre-commit install
  • Initialize the database
python manage.py migrate

Frontend

  • Install the dependencies using npm (which you get with Node.js installation)
cd frontend
npm install

Development

Backend

Dev server

The dev server can be started with the following command:

python manage.py runserver

CORS and CSRF

CORS and CSRF are preconfigured and should work out of the box.

Code Style

Code style: black Imports: isort

Frontend

The dev server can be started with the following command:

npm run dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published