GitXplorerGitXplorer
A

chinook-backend

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
84bd13607703e8163c392a46368b4bc422b012b5

Create README.md

AApra487 committed 3 years ago
Verified
cd94229d023b848fbc2382b28e19ac5499497479

Dev (#1)

AApra487 committed 3 years ago
Unverified
bd3f6f588abdfc7f059741c08266f412a15b6553

add github action and serverless deploy

AApra487 committed 3 years ago
Unverified
4c5705dc8f7d4978f43e042d7ab0899d5225ac03

initialise serverless

AApra487 committed 3 years ago
Unverified
38100c05b9aa7640d689863fe60f0c0db93ef700

initial commit with db connection

AApra487 committed 3 years ago

README

The README file for this repository.

chinook-backend

This is the backend for chinook-web-app app which does basic CRUD functions(only create and read for POC) on PostgreSQL Database and is automatically deployed using Github action to AWS lambda, AWS Api Gateway using serverless framework.

Application Architecture

Screenshot 2022-05-27 at 12 09 09 PM

Features

  • Continous Integration and Deployment using Github Actions.
  • Uses Serverless framework.
  • Uses AWS Lambda + AWS API Gateway + AWS RDS.
  • Does NOT use any ORM framework, only the pg library.

Quick Start

Create a .env file with the following properties:

  • USERNAME: The username of the postgres user.

  • HOST: The connection endpoint of the postgres database.

  • DATABASE: The name of the postgres database.

  • PASSWORD: The password of the postgres database.

  • PORT: The exposed port of the postgres database.

Then run the following command:

npm i
npm start

The api will get exposed at localhost:8001.

Endpoints

  • /api/v1/users GET
  • /api/v1/users POST

Demo

API is hosted here.

Click here for the frontend-repo.