Coder Social home page Coder Social logo

johnpapa / shopathome Goto Github PK

View Code? Open in Web Editor NEW
132.0 6.0 56.0 4.06 MB

Choose from Angular, React, Svelte, and Vue applications with an Azure Functions API, that deploys to Azure Static Web Apps

Home Page: https://www.shopathome.dev

License: MIT License

TypeScript 28.31% HTML 6.75% JavaScript 22.03% CSS 1.06% Vue 14.59% SCSS 13.71% Svelte 12.98% Dockerfile 0.58%
angular vue vuejs react reactjs svelte sveltejs azure-functions javascript

shopathome's Introduction

Static Web Apps

This repository contains apps that can be used with as a starting point for some MS Learn Modules. because everyone has their own preference for their JavaScript frameworks/library, you can choose which one you prefer.

The Shop at Home theme is used throughout the app. View it live at https://www.shopathome.dev

Deploy to Azure button

Deploy to Azure using App Spaces

Deploy to Azure button

  • For New Users: Clicking the button above will take you to the App Sapce template gallery. Select a shopping app solution template based on your preferred framework.
  • For Existing Users: Clicking the button above will direct you to a page displaying your existing app spaces and a ‘Create App Space’ button. Click ‘Create App Space’ to access the template gallery and choose a shopping app solution template.
  • GitHub Login: Log in to your GitHub account and fill in your organization and other required fields on the form.
  • Deployment: Click ‘Deploy’ to view the deployment progress.
  • Post-Deployment: After deployment is complete, you will be redirected to your app space for management.

Learn how

Learn how to Publish an Angular, React, Svelte, or Vue JavaScript app and API with Azure Static Web Apps

Contents

The apps written in the following JavaScript frameworks/libraries:

Folder Description Live Demo
angular-app Sample Angular app angular.shopathome.dev
api Sample Azure Functions app protected
react-app Sample React app react.shopathome.dev
svelte-app Sample Svelte app svelte.shopathome.dev
vue-app Sample Vue app vue.shopathome.dev

Prerequisites

Problems or Suggestions

Open an issue here

Resources

Azure Static Web Apps

shopathome's People

Contributors

azureadvocatebit avatar dependabot[bot] avatar johnpapa avatar mgechev avatar msftgits avatar reshmi-sriram avatar shimedh avatar softchris avatar yooakim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

shopathome's Issues

check scripts

@simonaco can you check the scripts for the SWA CLI and make sure I have these right for all 4 web frameworks?

Thanks!

After using the template, cloning, going to any app directory, example: cd vue-app, then running npm install, npm run serve

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (C:\shopathome\vue-app\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\shopathome\vue-app\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\shopathome\vue-app\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\shopathome\vue-app\node_modules\webpack\lib\NormalModule.js:503:5
at C:\shopathome\vue-app\node_modules\webpack\lib\NormalModule.js:358:12
at C:\shopathome\vue-app\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\shopathome\vue-app\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array. (C:\shopathome\vue-app\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (C:\shopathome\vue-app\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at C:\shopathome\vue-app\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at C:\shopathome\vue-app\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Connection refused when using proxy

This solutions suggests it would be possible to run this locally with a mocked backend. Unfortunately I get the following error when typing npm start inside the angular-app folder:

[HPM] Error occurred while trying to proxy request /api/products/ from localhost:4200 to http://localhost:7071 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

I'm probably doing something wrong here, but I can't find out what exactly. Any help would be appreciated.

Can't Upgrade to Angular v13

@mgechev Can you take a look at the Angular folder in the main branch, and try running ng update on it to get it to v13? When I did this I got all sorts of peer dependency issues with angular packages.

Issue Title

Set the commandCenter.* properties based on the existing color choices for:

commandCenter.border = activityBar.activeBorder;
commandCenter.activeBackground = titleBar.activeBackground;
commandCenter.background = titleBar.activeBackground;

Set the commandCenter.* properties

Set the commandCenter.* properties based on the existing color choices for:

commandCenter.border = activityBar.activeBorder; // if possible 
commandCenter.activeBackground = titleBar.activeBackground;
commandCenter.background = titleBar.inactiveBackground;

Running app locally PUT/POST APIs come as 404

Hi @johnpapa/@yooakim,
Thanks for the sample work for Static Web App files.

I'm using it both for honing my skills on Angular as well as working the Static Web App functions.

Running the app locally... all GET HTTP verbs work fine, but PUT/POST returns 404.

not sure, I am missing something in the routing setup. I ran it per instruction though.

Thank you for help,
Mohammad

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.