ansarizafar / api-gateway-vue-express-pg

This repository showcases an API gateway aggregating a Vue JS, Express and PostgreSQL (All running in containers)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Gateway + Vue JS + Express + PostgreSQL

This repository showcases an API gateway fronting an app that uses Vue JS, Express and PostgreSQL. Each piece of architecture is running isolated on their own container.

How it looks like in local

TODO: Add diagram for local development

How it will look like in AWS

Stack Diagram

Pre-requisites

The following items should be installed on your machine:

  • Docker (Containerization)
  • Docker Compose (Service Orchestration Locally)
  • NodeJS (API and GUI Development)
  • .NET Core (API Gateway Development)

Technology Stack

  • .NET Core
  • Node JS
  • VueJS
  • Express JS
  • Ocelot
  • PostgreSQL

Running Application

Run the following on the project root directory:

docker-compose up

Access GUI Locally

To access GUI, navigate to http://localhost:52793

To hit an API, navigate to http://localhost:52793/v1/api/users/list

Manually Deploy Cloud Formation Stack via AWS CLI

# NOTE: This repository is still under development and compilation of 
#       containers are not yet automated. I will update repository within the
#       next two weeks.

# Navigate to scripts folder and run the following command
aws cloudformation create-stack --stack-name my-stack-name \ 
  --template-body file://root-stack.yml --profile YOUR_AWS_PROFILE_NAME \ 
  --parameters ParameterKey=TemplateS3BucketUrl,ParameterValue=YOUR_S3_URL_HERE

TLDR;

I'm writing about API gateways in my blog @ https://www.pogsdotnet.com

Buy me a beer so I can code more? 🍺

QR Code

About

This repository showcases an API gateway aggregating a Vue JS, Express and PostgreSQL (All running in containers)

License:Apache License 2.0


Languages

Language:JavaScript 76.4%Language:C# 9.5%Language:Vue 6.1%Language:Shell 3.8%Language:Dockerfile 2.4%Language:HTML 1.5%Language:CSS 0.3%