This repo is a starter for a basic Remix web application deployed to Azure Static Web Apps (SWA).
It consists a top level node workspace containing the following:
web
: Basic remix application, configured to build remix server to../api/build
.api
: An Azure function to handle http request for remix routes.
The basic Remix web application and Azure Function request handler is based on this repository by Jeff Emery, with minor modifications. See the respective README in the subdirectories for more information.
- Node version 16
- You may run into this issue on Mac with other versions.
- Azure Functions for local development
- Visual Studio Code and Azure Functions VS Code extension
- or Azure Functions Core Tools
- Clone this repository to your local environment.
npm install
npm run build
npm run start
This repo has a dev container. This means if you open it inside a GitHub Codespace, or using VS Code with the remote containers extension, it will be opened inside a container with all the dependencies already installed.
If you're looking to create something similar from scratch, see the README for the web
subdirectory or this repository by Jeff Emery.