GithubHelp home page GithubHelp logo

ajsalemo / dotnetcoreapi-nextjs Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 6.0 316 KB

A basic NextJS UI that connects to a ASP .NET Core API - used as a proof of concept for multicontainers/docker-compose on Azure

Home Page: https://ansalemo-nextjs-dotnetcoreapi-dockercompose.azurewebsites.net/

C# 59.97% Dockerfile 11.59% JavaScript 26.71% CSS 1.20% Shell 0.53%
docker azure docker-compose multicontainers paas cloud dockerfile nextjs expressjs aspnetcore

dotnetcoreapi-nextjs's Introduction

DotNetCoreAPI-NextJS

A Next application that uses Express, acting as a front-end, which calls to a ASP .NET Core API on Azure's Multicontainer(docker-compose) platform - used as a proof of concept for multicontainers/docker-compose on Azure.

Note: Multicontainers are currently in public preview and not recommended for production.

Usage:

The environment variable NEXT_PUBLIC_URL_API should be changed to the service(container name) that you're connecting to. If your API service in your docker-compose.yml file is named 'somecontainername', then change the variable or API endpoint to http://somecontainername:port of your API - for example:

http://dotnetcoreapi-container:5000

services:
  nextjsfrontend-container:
    image: yourcontainerregistry.azurecr.io/nextjsfrontend:yourtag
    ports:
      - "3000:3000"
    environment:
      - NEXT_PUBLIC_URL_API=${NEXT_PUBLIC_URL_API}

  dotnetcoreapi-container:
    image: yourcontainerregistry.azurecr.io/dotnetcoreapi:yourtag
    ports:
      - "5000:5000"

Optionally and more preferably, you can just add the above environment variable to your AppSettings within your Azure Application.

dotnetcoreapi-nextjs's People

Contributors

ajsalemo avatar

Stargazers

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

Watchers

 avatar  avatar  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.