Skip to content

Apra487/chinook-backend

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published