This will guide you through setting up a replica set in a docker environment using.
- Docker Compose
- MongoDB Replica Sets
- Mongoose
- Mongoose Transactions
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| version: '3.1' | |
| services: | |
| mongo-setup: | |
| container_name: mongo-setup | |
| image: mongo | |
| restart: on-failure | |
| networks: | |
| default: | |
| volumes: |
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| Emoji | Name | Text example |
|---|---|---|
| 🚀 | Rocket | You're up |
| 📦 | Package | Installing additional dependencies... |
| ⚓ | Hook | Running completion hooks... |
| 📄 | Document | Generating README.md... |
| 🎉 | Party | Successfully created project hello-vue. |
| 👉 | Next | Get started with the following commands: |
| ✔ | Tick | Task completed |
| ✨ | Magic | Assembling project... |
Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
| const AWS = require('aws-sdk'); | |
| const Busboy = require('busboy'); | |
| const BUCKET_NAME = ''; | |
| const IAM_USER_KEY = ''; | |
| const IAM_USER_SECRET = ''; | |
| function uploadToS3(file) { | |
| let s3bucket = new AWS.S3({ | |
| accessKeyId: IAM_USER_KEY, |
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |