All Projects â†’ johnpapa â†’ Heroes Angular Serverless

johnpapa / Heroes Angular Serverless

TypeScript Node/Express 👉TypeScript Serverless ➕Angular

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Heroes Angular Serverless

Serverless Express
Run Node.js web applications and APIs using existing application frameworks on AWS #serverless technologies such as Lambda, API Gateway, Lambda@Edge, and ALB.
Stars: ✭ 4,265 (+3484.03%)
Mutual labels:  serverless, express
Node Typescript Boilerplate
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
Stars: ✭ 1,061 (+791.6%)
Mutual labels:  serverless, express
Guide
Serverless Guide - An open-source definitive guide to serverless architectures.
Stars: ✭ 421 (+253.78%)
Mutual labels:  serverless, azure-functions
Grant
OAuth Proxy
Stars: ✭ 3,509 (+2848.74%)
Mutual labels:  serverless, express
Azurefunctionsintroduction
Sample Code for Azure Functions
Stars: ✭ 88 (-26.05%)
Mutual labels:  serverless, azure-functions
Express
âš¡ Take existing Express.js apps and host them easily on cheap, auto-scaling, serverless infrastructure (AWS Lambda and AWS HTTP API).
Stars: ✭ 337 (+183.19%)
Mutual labels:  serverless, express
Azure Functions Billing
Azure Functions v2 with .NET Core - billing in serverless architecture.
Stars: ✭ 49 (-58.82%)
Mutual labels:  serverless, azure-functions
Jazz
Platform to develop and manage serverless applications at an enterprise scale!
Stars: ✭ 254 (+113.45%)
Mutual labels:  serverless, azure-functions
Serverless Graphql Workshop
GraphQL and Serverless workshop
Stars: ✭ 70 (-41.18%)
Mutual labels:  serverless, azure-functions
Functions Csharp Eventhub Ordered Processing
Example of processing events in order with the Azure Functions Event Hubs trigger
Stars: ✭ 60 (-49.58%)
Mutual labels:  serverless, azure-functions
Serverless Microservices Reference Architecture
This reference architecture walks you through the decision-making process involved in designing, developing, and delivering a serverless application using a microservices architecture through hands-on instructions for configuring and deploying all of the architecture's components along the way. The goal is to provide practical hands-on experience in working with several Azure services and the technologies that effectively use them in a cohesive and unified way to build a serverless-based microservices architecture.
Stars: ✭ 270 (+126.89%)
Mutual labels:  serverless, azure-functions
Serverless
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –
Stars: ✭ 41,584 (+34844.54%)
Mutual labels:  serverless, azure-functions
Azure Functions Python Samples
Azure Functions Python Sample Codes
Stars: ✭ 266 (+123.53%)
Mutual labels:  serverless, azure-functions
25 Days Of Serverless
Repository responsible for 25 days of Serverless challenges
Stars: ✭ 400 (+236.13%)
Mutual labels:  serverless, azure-functions
Fullstack App
âš¡ Ready-to-use, serverless, full-stack application built with AWS Lambda, Express.js, React, AWS DynamoDB and AWS HTTP API.
Stars: ✭ 265 (+122.69%)
Mutual labels:  serverless, express
Cadscenario personalisation
This is a end to end Personalisation business scenario
Stars: ✭ 10 (-91.6%)
Mutual labels:  serverless, azure-functions
Openapi Backend
Build, Validate, Route, Authenticate and Mock using OpenAPI
Stars: ✭ 216 (+81.51%)
Mutual labels:  serverless, express
Batch Shipyard
Simplify HPC and Batch workloads on Azure
Stars: ✭ 240 (+101.68%)
Mutual labels:  serverless, azure-functions
Haveibeenpwned Zxcvbn Lambda Api
Deploy your own secure API to estimate password strength and check haveibeenpwned for known matches - HTTPS by force, server not required, fire and brimstone sold separately 🔥
Stars: ✭ 57 (-52.1%)
Mutual labels:  serverless, express
Netlify Functions Express
How to use Netlify functions + express.js for serverside rendering on the JAMStack
Stars: ✭ 105 (-11.76%)
Mutual labels:  serverless, express

Heroes Angular Serverless

TypeScript Node/Express 👉TypeScript Serverless ➕ Angular

This project was created to help represent a fundamental app written with Node Express APIs and TypeScript that can be shifted to Serverless Functions with TypeScript.

The client app is Angular, however it could just as easily be Vue or React. The heroes and villains theme is used throughout the app.

by John Papa

Comparative client apps written with Vue and React can be found at at github.com/johnpapa/heroes-vue and github.com/johnpapa/heroes-react

Why

I love Node and Express for creating APIs! These require a server and paying for that server in the cloud. Shifting to serverless alleviates the cost, the server upkeep, helps scale up and down easily, and reduces the surface area of the middleware required for a robust Express app. Is it perfect? No, of course not! But this is a solid option if these factors affect you.

Prerequisites

  1. We need a database. You can use the free Azure Cosmos DB trial. Or try the Azure Free Trial.
  2. Create an Azure Cosmos DB database.
  3. Create a container named heroes and another named villains. Give each a partition key of /id. You can add data through the app later.
  4. Make a copy of the env.example file named .env, in the root of the project. It should contain the following code. Replace the CORE_API_KEY and CORE_API_URL variables with your Azure Cosmos DB information.

.env

NODE_ENV=development
PORT=7070
WWW="./"
CORE_API_KEY="your-azure-cosmos-db-api-key-goes-here"
CORE_API_URL="https://papa-cosmos-api-db.documents.azure.com/?WT.mc_id=heroesangularserverless-github-jopapa"

Open the /functions/local.settings.json file and add the CORE_API_KEY and CORE_API_URL variables as shown below. Fill those values in with your database information.

/functions/local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "CORE_API_KEY": "your-azure-cosmos-db-api-key-goes-here",
    "CORE_API_URL": "https://your-azure-cosmos-db-url-goes-here:443/"
  }
}

Getting Started

  1. Clone this repository

    git clone https://github.com/johnpapa/heroes-angular-serverless.git heroes
    cd heroes
    
  2. Install the npm packages

    npm install
    
  3. Build the Node Express and the Angular code

    npm run node-ng:build
    
  4. Run the app

    npm run node:start
    

Debug Node Express and Angular

  1. Open proxy.conf.json and change the port to 7070

  2. Open the VS Code Command Palette F1

  3. Type View: Show Debug and press ENTER

  4. Select Debug Express and Angular

  5. Press F5

  6. Open the browser to http://localhost:7070

You may now set break points in the Express and Angular code.

Debug Functions and Angular

  1. Open proxy.conf.json and change the port to 7071

  2. Open the VS Code Command Palette F1

  3. Type View: Show Debug and press ENTER

  4. Select Debug Functions and Angular

  5. Press F5

  6. Open the browser to http://localhost:7071

You may now set break points in the Functions and Angular code.

Problems or Suggestions

Open an issue here

Resources

Debugging Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].