This tutorial explains how to deploy automatically from bitbucket (or github) to AWS S3.
- Go to Create Application
- Select use bitbucket (or github)
- Choose your repo
- For the next questions, choose the default answers
# Create a container from the mongo image, | |
# run is as a daemon (-d), expose the port 27017 (-p), | |
# set it to auto start (--restart) | |
# and with mongo authentication (--auth) | |
# Image used is https://hub.docker.com/_/mongo/ | |
docker pull mongo | |
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth | |
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception) | |
# add a root user |
.p-0 { | |
padding: 0px; | |
} | |
.p-3 { | |
padding: 3px; | |
} | |
.p-5 { | |
padding: 5px; |
""" | |
A script that loads a GitHub repositories info and updates a Firebase database with it. | |
You will require the following database rules: | |
{ | |
"rules": { | |
"repositories": { | |
".write": "auth != null", | |
".read": true |
import uuid | |
import wtforms_json | |
from sqlalchemy import not_ | |
from sqlalchemy.dialects.postgresql import UUID | |
from wtforms import Form | |
from wtforms.fields import FormField, FieldList | |
from wtforms.validators import Length | |
from flask import current_app as app | |
from flask import request, json, jsonify, abort |