-
Notifications
You must be signed in to change notification settings - Fork 4
Getting Started
Ben C edited this page Jan 3, 2023
·
1 revision
Thanks for choosing to use Djazztro! This guide will outline how to start a new project with create-djazztro.
Before we get started, Djazztro supports creating a project with npm, pnpm, and yarn. However, this guide will use npm for examples. Just keep in mind that you can change any of these out with pnpm
or yarn
!
To get started, run npm create djazztro
. This will guide you few a few prompts.
The python package manager section lets you choose pip
, this is not recommended if you're not in a virtualenv, as it can bloat your global interpreter.
To start a development server, run npm run dev
, this will start a Django and Astro server, you'll want to connect to the Django server to get teh actual site. (By default this is bound to port 8000).
- You can change the port that Astro runs on by specifying the
ASTRO_PORT
variable. - You can change the Django port by editing the
dev:backend
script inpackage.json
and changing the args