Skip to content

dorinpascal/BestMovies

Repository files navigation

Demo gif of BestMovies Inc Platform


BestMovies.WebApp & BestMovies.Bff

Both projects are run as a Static Web App:

  • BestMovies.WebApp - the static content
  • BestMovies.Bff - the azure functions
Run Static Web App locally

Note: Install swa using npm install -g @azure/static-web-apps-cli

swa start http://localhost:5124 --run "dotnet watch run --project ./BestMovies.WebApp/BestMovies.WebApp.csproj" --api-devserver-url http://localhost:7071

Note: Make sure you use Node v20.0.0+ and you have local.settings.json file

  • Add BestMoviesApi.BaseUrl to your local.settings.json file \
  • Add TMDB_API_KEY to your local.settings.json file \
  • Add MASTER_KEY to your local.settings.json file, which is used in the header x-functions-key

BestMovies.Bff - Authenticate locally
  • Add header x-ms-client-principal that contains the ClientPrincipal as base64

Note ClientPrincipal looks like:

{
  "identityProvider": "google",
  "userId": "<userId>",
  "userDetails": "<email>@gmail",
  "userRoles": ["anonymous", "authenticated"]
}

BestMovies.Api

The project is an azure function

Run the project locally:
  1. Create a database in your local Sql Server
  2. Get the connection string to it.
  3. Create a new local.settings.json file similar to one in the BestMovies.Bff project.
  4. Add the DbConnectionString to your local.settings.json file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published