https://github.com/kunukn/my-first-static-web-app
https://github.com/kunukn/my-first-static-web-app
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kunukn/my-first-static-web-app
- Owner: kunukn
- Created: 2023-01-03T14:11:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T13:21:17.000Z (over 2 years ago)
- Last Synced: 2025-01-31T07:31:13.526Z (4 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Vanilla JavaScript App
[Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) allows you to easily build JavaScript apps in minutes. Use this repo with the [quickstart](https://docs.microsoft.com/azure/static-web-apps/getting-started?tabs=vanilla-javascript) to build and customize a new static site.
This repo is used as a starter for a _very basic_ HTML web application using no front-end frameworks.
This repo has a dev container. This means if you open it inside a [GitHub Codespace](https://github.com/features/codespaces), or using [VS Code with the remote containers extension](https://code.visualstudio.com/docs/remote/containers), it will be opened inside a container with all the dependencies already installed.
## SWA CLI
Example:
ensure `staticwebapp.config.json` exists in the `app-location` folder. This enables API deploy to work.
```
swa deploy --verbose=silly --app-name my-first-static-web-app --app-location ./src/ --api-location ./api/ --env production --deployment-token
```