Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit a6bd1ef

Browse files
committed
Scaffold the Stitch/Realm Backend
1 parent c63d12f commit a6bd1ef

File tree

6 files changed

+167
-0
lines changed

6 files changed

+167
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "local-userpass",
3+
"type": "local-userpass",
4+
"config": {
5+
"autoConfirm": true,
6+
"resetPasswordSubject": "Reset Your Password",
7+
"resetPasswordUrl": "http://localhost:3000/admin/resetPassword",
8+
"runConfirmationFunction": false,
9+
"runResetFunction": ""
10+
},
11+
"disabled": false
12+
}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "mongodb-atlas",
3+
"type": "mongodb-atlas",
4+
"config": {
5+
"clusterName": "Cluster0",
6+
"readPreference": "primary",
7+
"wireProtocolEnabled": false
8+
},
9+
"version": 1
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"database": "tracker",
3+
"collection": "projects",
4+
"roles": [
5+
{
6+
"name": "default",
7+
"apply_when": {},
8+
"write": true,
9+
"insert": true,
10+
"delete": true,
11+
"additional_fields": {}
12+
}
13+
],
14+
"schema": {
15+
"title": "Project",
16+
"bsonType": "object",
17+
"required": [
18+
"_id",
19+
"_partition",
20+
"name"
21+
],
22+
"properties": {
23+
"_id": {
24+
"bsonType": "objectId"
25+
},
26+
"_partition": {
27+
"bsonType": "objectId"
28+
},
29+
"name": {
30+
"bsonType": "string"
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"database": "tracker",
3+
"collection": "tasks",
4+
"roles": [
5+
{
6+
"name": "default",
7+
"apply_when": {},
8+
"write": true,
9+
"insert": true,
10+
"delete": true,
11+
"additional_fields": {}
12+
}
13+
],
14+
"schema": {
15+
"title": "Task",
16+
"bsonType": "object",
17+
"required": [
18+
"_id",
19+
"_partition",
20+
"title",
21+
"status",
22+
"description",
23+
"comments"
24+
],
25+
"properties": {
26+
"_id": {
27+
"bsonType": "objectId"
28+
},
29+
"_partition": {
30+
"bsonType": "objectId"
31+
},
32+
"status": {
33+
"bsonType": "string",
34+
"enum": [
35+
"Open",
36+
"InProgress",
37+
"Closed"
38+
]
39+
},
40+
"assignee": {
41+
"bsonType": "objectId"
42+
},
43+
"description": {
44+
"bsonType": "string"
45+
},
46+
"watchers": {
47+
"bsonType": "array",
48+
"items": {
49+
"bsonType": "string"
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"database": "tracker",
3+
"collection": "users",
4+
"roles": [
5+
{
6+
"name": "default",
7+
"apply_when": {},
8+
"write": true,
9+
"insert": true,
10+
"delete": true,
11+
"additional_fields": {}
12+
}
13+
],
14+
"schema": {
15+
"title": "User",
16+
"bsonType": "object",
17+
"required": [
18+
"_id",
19+
"_partition",
20+
"name",
21+
"projects"
22+
],
23+
"properties": {
24+
"_id": {
25+
"bsonType": "objectId"
26+
},
27+
"_partition": {
28+
"bsonType": "objectId"
29+
},
30+
"name": {
31+
"bsonType": "string"
32+
},
33+
"image": {
34+
"bsonType": "string"
35+
},
36+
"projects": {
37+
"bsonType": "array",
38+
"items": {
39+
"bsonType": "objectId"
40+
}
41+
}
42+
}
43+
}
44+
}

server/stitch.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"config_version": 20180301,
3+
"name": "task-tracker",
4+
"location": "US-VA",
5+
"deployment_model": "GLOBAL",
6+
"security": {},
7+
"custom_user_data_config": {
8+
"enabled": false
9+
},
10+
"sync": {
11+
"development_mode_enabled": false
12+
}
13+
}

0 commit comments

Comments
 (0)