Git Product home page Git Product logo

swa-app-sample's Introduction

swa-app-sample

Azure Static Web Apps の機能を使ったサンプルアプリケーション

構成図

構成図

前提条件

使い方

ローカルでの開発

  1. このリポジトリをクローン

  2. api/local.settings.jsonを作成

    1. api/README.mdを参考
  3. パッケージのインストール

    npm install
    cd api
    npm install
  4. Azriteの起動

    1. ctrl + shift + p
    2. Azurite: Start
  5. ローカルサーバーの起動

    swa build
    swa start

docs

関連リンク

swa-app-sample's People

Contributors

takatoshiinaoka avatar

Watchers

 avatar

Forkers

edd-2023-team10

swa-app-sample's Issues

APIがデプロイできない

状態

Next.jsの静的アプリはデプロイできるが、FunctionsのAPIをでぷろいしようとするとエラーがでる。

期待する動作

静的アプリはNext.js、サーバレスAPIはAzure Functionを使用したアプリをStatic Web Appsで動かしたい。

エラー

https://github.com/takatoshiinaoka/swa-aadb2c-auth-sample/actions/runs/6071830763/job/16470646795

'api_location' value should be an empty string ("") for Next.js applications which are not statically exported. Consider implementing serverless functions using Next.js API Routes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.