GithubHelp home page GithubHelp logo

leongj / azure-shop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thivy/azure-shop

0.0 0.0 0.0 15.06 MB

Shell 0.60% JavaScript 2.19% C# 4.48% TypeScript 53.06% CSS 2.07% Dockerfile 7.95% Bicep 29.64%

azure-shop's Introduction

Harnessing the Power of Meta Frameworks and Microservices on Azure Serverless Infrastructure

Meta Frameworks have made frontend development fun with support for layouts, nested routing, server components, data fetching and mutation, error handling, and so much more.

Building on Azure Container Apps, you can create serverless applications with containers and integrate them with your preferred programming language and framework. When you combine Meta Framework frontend features with frameworks like Dapr, it enables your microservices and server-based UI components to coexist effortlessly. As a result, your UI components can communicate directly with microservices within a secure network boundary, leading to faster, more secure, and more scalable service-to-service communications.

Introduction

This repo is an example e-commerce application that is built with the following technologies.

Frontend:

  • Next.js 13 enables you to create full-stack web applications by extending the latest React features
  • Tailwind CSS is a utility-first CSS framework that provides a series of predefined classes that can be used to style each element by mixing and matching

Backed:

  • PocketBase is an open-source backend consisting of embedded database (SQLite) with built-in auth management, convenient dashboard UI and simple REST API.

Getting started

Setup PocketBase.

To set up PocketBase, we recommend using a docker container that includes preloaded products and associated images for your convenience. Firstly, navigate to the "product-cms" folder and execute the following command to build the docker image:

docker build --pull --rm -f "Dockerfile" -t shop-products:latest "product-cms"

Then, start PocketBase by running the command:

docker run --rm -it -p 7000:7000/tcp shop-products:latest

Next, go to http://localhost:7000/_ to access the admin login page, where you can log in using the provided credentials:

username: [email protected]

password: [email protected]

Once you've logged in, you'll be able to view the preloaded products and images under the "products collections" section.

Additionally, you can access the products via REST at http://localhost:7000/api/collections/products/records

It's worth noting that all APIs are currently public for demonstration purposes. However, for production use, we recommend setting up API keys per API operation, which can be accomplished using this guide:https://pocketbase.io/docs/api-rules-and-filters/

azure-shop's People

Contributors

thivy avatar davidxw avatar

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.