Skip to content

This is a Serverless application developed using AWS and Google Cloud Platform services for a Bread 'N' Breakfast establishment.

Notifications You must be signed in to change notification settings

BennyDanielT/Serverless-BnB

Repository files navigation

Project - CSCI 5410 - Group 24 - Serverless B&B

Authors

Getting Started

See the following section for detailed step-by-step instructions on how to run this project locally and See deployment for notes on how to deploy the project on a live system.

Prerequisites

To have a local copy of this tutorial up and running on your local machine, you will first need to install the following software

  • Node.js - a JavaScript runtime (includes npm)
  • npm - a package manager for Node environment

Installing

To get a development env running on local machine, run the following command in the project directory

Below command installs all the packages provided in package.json file into the folder called node_modules at the root of the project directory. You can see node_modules folder created at the root of the project directory when installation gets successful.

npm install

Below command runs the project in development mode. You can visit http://localhost:3000 to view it in your browser.

npm start

Deployment

The deployment of Serverless B&B is on Google Cloud Run, which allows us to run containerized application invocable by requests. We have packaged the image using Docker with base image of node and NGINX.

Below command creates a build and pushes it to the Container Registry

gcloud builds submit --tag gcr.io/[YOUR_PROJECT_ID]/cra-cloud-run

Below command deploys the container image to CloudRun.

gcloud run deploy --image gcr.io/[YOUR_PROJECT_ID]/cra-cloud-run --platform managed

Built With

Acknowledgments

About

This is a Serverless application developed using AWS and Google Cloud Platform services for a Bread 'N' Breakfast establishment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published