Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.31 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.31 KB

export AWS_ACCESS_KEY_ID=AKIAR2ARWK24R6YQYI7X export AWS_SECRET_ACCESS_KEY=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 aws s3 cp s3://haverim-app-frontend ./build --recursive

Haverim Lerefua Backend

Tech Stack

  • Node.js - TypeScript (Runtime)
  • Express (Framework)
  • Prisma (ORM)
  • Postgres (DB)

The Infra (AWS)

  • Serverless (IaC Framework)
  • Lambda with API Gateway
  • RDS (Postgres)

Getting Started

Prerequisite

  • Git
  • Node.js Version 18
  • NVM
  • Serverless: npm install -g serverless
  • AWS CLI V2
  • AWS Credentials Setup: aws configure
  • AWS Profiles Setup at: ~/.aws/credentials
  • For local debugging: npm install -g nodemon

Run Locally

  • Uncomment dev configuration in .env file
  • Start the express server and listen to changes: nodemon
  • Access by localhost:<your port from .env file>

Deployment

  • Install dependencies: npm install
  • Deploy to AWS: npm run deploy

If you're behind a proxy, use this workaround: $env:NODE_TLS_REJECT_UNAUTHORIZED = "0"