ashishkarki / DijitallNotarer

DijitallNotarer is a digital notarization platform using NestJS (backend), Next.js (frontend), and GraphQL APIs. It integrates LocalStack for AWS services, features a monorepo with Yarn workspaces, and includes CI/CD with GitHub Actions. Ideal for showcasing serverless and modern web tech stacks.
MIT License
0 stars 0 forks source link

Project Simplification using locally installed LocalStack for mock AWS #8

Closed ashishkarki closed 2 weeks ago

ashishkarki commented 3 weeks ago

How LocalStack Works Locally (Without Docker)

You can install LocalStack directly on your machine without Docker by following these steps:

Step 1: Install LocalStack via pip LocalStack can be installed as a Python package via pip:

pip install localstack

Step 2: Start LocalStack Locally

Once installed, you can start LocalStack directly on your machine:

localstack start

This will run LocalStack and expose services like S3, DynamoDB, and Lambda on localhost:4566, which can be accessed by your locally running NestJS app.

Step 3: Update .env File

Update your NestJS environment to point to localhost:

AWS_ENDPOINT=http://localhost:4566

Now, the NestJS app running locally can directly connect to LocalStack at http://localhost:4566, avoiding any Docker-related networking issues.

Would This Have Prevented Issues?

ashishkarki commented 2 weeks ago

I had an English test last Monday and haven't had a chance to come back to this and any coding till today, Saturday, late morning.

That being said, I have been looking at the stacks of various jobs, especially the backend ones that I like and comparing it with the stack here and doing some thinking in terms of if:

ashishkarki commented 2 weeks ago

So, i gave up on the idea of running localstack with docker-container based nestjs or any other service since i can running to connection issues.. uninstall localstack and its deps from my machine. Might look into doing this with MinIO, OpenFaas etc toolset