Devcontainer
spins up a development environment in a container so you don't have to install the dependencies on your host machine:
- Ensure Docker is installed and running
- Install vscode and
Dev Containers
extension - Open this project in vscode
- Launch
Command Palette
from the UI or run⌘ + Shift + P
if you are on Mac - Select either
Reopen in Container
orRebuild Container
to start the Devcontainer - Once Devcontainer starts up, open vscode terminal, and use the commands in the following section to develop and debug.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |