Skip to content

Node.js Express Server with Swagger UI for fetching AWS VPC resources(regions, VPCs, subnets) and storing in MySQL Database.

Notifications You must be signed in to change notification settings

krapie/aws-vpc-describer

Repository files navigation

AWS-VPC-Describer

Node.js Express Server with Swagger UI for fetching AWS VPC resources(regions, VPCs, subnets) and storing in MySQL Database.

swagger-ui.png

Table of Contents

  • Getting Started
    • Prerequisites
    • Instructions
  • Development
    • Project Requirements
    • Project Structure
    • References

Getting Started

Just clone this repository and follow instructions bellow!

Prerequisites

Instructions

# clone repository
git clone https://github.com/Krapi0314/AWS-VPC-Describer.git

# change to project directory
cd AWS-VPC-Describer

# create a .env file by copying and adjusting env.example
cp env.example .env

# install dependencies using npm
npm install

# map prisma data model to the mysql database schema
npx prisma migrate dev --name init

# start server (nodemon)
npm start

# enter Swagger URL and check AWS VPC APIs and Schemas!
http://localhost:3000/api/v1/aws/api-docs

Development

Project Components

Project Structure

Client

  • controller: API controllers for fetching/serving AWS VPC resources
  • primsa
    • schema.prisma: Model for AWS VPC resources, this corresponds with MySQL tables
  • routes: Router for routing APIs with Express
  • service: Service for MySQL CRUD operation on AWS VPC resources
  • server.js: Main entry point, Exprses/Swagger/CORS configuration

Refences

AWS SDK JavaScript v3

AWS VPC Resources schema

About

Node.js Express Server with Swagger UI for fetching AWS VPC resources(regions, VPCs, subnets) and storing in MySQL Database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published