// NOTE: tags ARE NOT stored or returned with a leading '#'
{
"featured": [
"tags",
"that",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A postgresql container to store all your dev dataz! | |
pg: | |
# cade/webmaker-postgres is a slightly customized version of the official Docker Hub postgres container | |
image: cade/webmaker-postgres | |
# Enable host networking for the container - effectively making th containers 'localhost' the same as the host | |
net: "host" | |
# Mounts the pg_data folder in this repo to the containers filesystem. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
webmaker: | |
image: cade/webmaker-api:latest | |
env_file: compose.webmaker.env | |
net: "host" | |
id: | |
image: cade/webmaker-id:latest | |
env_file: compose.id.env | |
net: "host" | |
loginapi: | |
image: cade/legacy-webmaker-login:latest |
We can roll the new featured tag[s] into /discover
Pros: No extra HTTP requests on the client
Cons: Kind weird, especially with pagination. Larger payload sizes.
GET /disover
{
Tools used
- https://npmjs.com/package/pg-json-import
- MySQL Workbench
- pgAdmin III
Since projects take up about 750Mib of disk space, loading them all into a node process is not possible. Therefore, I broke the projects up into 50000 project chunks. You're probably also going to want to manuall increase the Heap size available to V8 using node --max_old_space_size=2000000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
CREATE OR REPLACE FUNCTION generate_reset_code() | |
RETURNS TRIGGER AS $$ | |
BEGIN | |
NEW.code = gen_random_uuid(); | |
RETURN NEW; | |
END; | |
$$ language 'plpgsql'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title { | |
label: "mozilla/id.webmaker.org ERD", size: "20" | |
} | |
[Clients] | |
*client_id | |
client_secret | |
allowed_grants | |
allowed_responses | |
redirect_url |
I hereby claim:
- I am cadecairos on github.
- I am cadecairos (https://keybase.io/cadecairos) on keybase.
- I have a public key whose fingerprint is 99F9 2E19 A752 31D1 CEF5 C795 3758 CA9B 4018 940D
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
html input, | |
html textarea, | |
html select, | |
html button, | |
html input[type="reset"], | |
html input[type="button"], | |
html input[type="submit"], | |
html input[type="radio"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var schema = Joi.array().items( | |
Joi.object().keys({ | |
a: Joi.string().valid('1', '2', '3'), | |
b: Joi.string().valid('a', 'b', 'c'), | |
c: Joi.object().keys({ | |
// Does this work? | |
// if not, how do I reference 'a' properly? | |
d: Joi.any().when('a', { | |
is: '1', |