GithubHelp home page GithubHelp logo

farm-stack-azure's Introduction

FARM Stack on Azure ๐Ÿง‘โ€๐ŸŒพ

Use this template

Use this stack to deploy react website connected with a fastapi backend on Azure Web App

What's in this Stack ?

  • React app generated with create-react-app coupled with tailwindcss ๐ŸŒŸ
  • FastApi server with motor for db connections ๐Ÿš€
  • Deployed with a nginx reverse proxy
  • Docker-compose file for local development

Prerequisites

You would require

  • Azure Webapp configured to work with a Docker Container
  • Azure Container Registry to store container images
  • MongoDB for all your DB needs

Required Inputs

  • Web App Name: Name of the app that you have provisioned on Azure. (Note that this should be configured for Docker deploy)

Screenshot 2022-01-12 at 7 01 56 PM

  • Azure Container Registry URL: Login url of your container registry (example: stack.azurecr.io)

  • Azure Resource Group Name : Name of the Resource Group under which your Web app is provisioned

  • MongoDB Connection String : Connection string for your MongoDB

  • Azure Credentials : You would need to generate Azure Credentials scoped to the resource-group/subscription of all the Azure resources mentioned above. This can be done by running the Azure cli command

az ad sp create-for-rbac --name "GHActions" --role contributor --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group} --sdk-auth

More detailed documentation can be found here

Your app would be hosted at https://<azure_app_name>.azurewebsites.net

Local Development

You can get started with your project locally by running the command

  docker compose -f docker-compose-local.yml up --build -d

This sets up the website at port:5000

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.