Skip to content

Instantly share code, notes, and snippets.

View navjotdhanawat's full-sized avatar
🎯
Focusing

Navjot Dhanawat navjotdhanawat

🎯
Focusing
View GitHub Profile
@navjotdhanawat
navjotdhanawat / json-to-s3.js
Created July 3, 2018 07:17
Create json and upload to s3 bucket using nodejs.
var AWS = require('aws-sdk');
AWS.config.update({ region: 'us-east-1' });
var s3 = new AWS.S3();
var obj = {
firstname: "Navjot",
lastname: "Dhanawat"
};
var buf = Buffer.from(JSON.stringify(obj));
@anandgorantala
anandgorantala / 1_docker-micro-services.txt
Last active January 23, 2020 21:39
Docker setup for nodejs microservices with nginx and rethinkdb
# This shows the setup for two services, an accounts service which connects to a database and a pagerduty service which connects to the pagerduty api
# Directory structure
accounts/
|_ Dockerfile
pagerduty/
|_ Dockerfile
nginx/
|_ conf/
|_ sites.conf
|_ .htpasswd