Initial commit. backend-core support
parent
84885ad359
commit
2ecb2e598f
|
@ -0,0 +1,27 @@
|
|||
[submodule "backend-bite"]
|
||||
path = backend-bite
|
||||
url = git@makerforce.io:beep/backend-bite.git
|
||||
[submodule "backend-core"]
|
||||
path = backend-core
|
||||
url = git@makerforce.io:beep/backend-core.git
|
||||
[submodule "backend-protobuf"]
|
||||
path = backend-protobuf
|
||||
url = git@makerforce.io:beep/backend-protobuf.git
|
||||
[submodule "backend-publish"]
|
||||
path = backend-publish
|
||||
url = git@makerforce.io:beep/backend-publish.git
|
||||
[submodule "backend-signal"]
|
||||
path = backend-signal
|
||||
url = git@makerforce.io:beep/backend-signal.git
|
||||
[submodule "backend-store"]
|
||||
path = backend-store
|
||||
url = git@makerforce.io:beep/backend-store.git
|
||||
[submodule "backend-subscribe"]
|
||||
path = backend-subscribe
|
||||
url = git@makerforce.io:beep/backend-subscribe.git
|
||||
[submodule "backend-transcription"]
|
||||
path = backend-transcription
|
||||
url = git@makerforce.io:beep/backend-transcription.git
|
||||
[submodule "backend-login"]
|
||||
path = backend-login
|
||||
url = git@makerforce.io:beep/backend-login.git
|
10
README.md
10
README.md
|
@ -1,3 +1,11 @@
|
|||
# backend
|
||||
|
||||
Beep backend
|
||||
Beep backend
|
||||
|
||||
## Quickstart
|
||||
|
||||
Requires [docker-compose](https://docs.docker.com/compose/).
|
||||
|
||||
```
|
||||
docker-compose up --build
|
||||
```
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 0e4ecf8e51d32b2887edf7ed01a82ff185c6374f
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 50497125d422150a66de370c97bb108f8e04fa91
|
|
@ -0,0 +1 @@
|
|||
Subproject commit a1fcb82f7c34c0aecf193445014bee60f25369de
|
|
@ -0,0 +1 @@
|
|||
Subproject commit f29ca10a14c407a61f53913930ac5bdca96a5a88
|
|
@ -0,0 +1 @@
|
|||
Subproject commit fec6e3173dd1280a0ed3f2d6f5ec7d749942c7f6
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 37508f9456f83c84be5ff5ac8849823ec7b7ef98
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 67bfc3bd0f04f2c779992a37769d1d01584eb13b
|
|
@ -0,0 +1 @@
|
|||
Subproject commit cfcacfa25f52e21ed61af15dc05303596fcc95ad
|
|
@ -0,0 +1 @@
|
|||
Subproject commit b2ea723ab151130a4ad71a8371c238acc3fbfba2
|
|
@ -0,0 +1,32 @@
|
|||
version: "3"
|
||||
services:
|
||||
pg:
|
||||
build: ./postgres
|
||||
environment:
|
||||
- POSTGRES_USER=root
|
||||
- POSTGRES_PASSWORD=
|
||||
- POSTGRES_DB=core
|
||||
ports:
|
||||
- "5432:5432" # Close this for production
|
||||
networks:
|
||||
- pgnet
|
||||
nats:
|
||||
image: nats:latest
|
||||
ports: # Close these for production
|
||||
- "4222:4222"
|
||||
- "6222:6222"
|
||||
- "8222:8222"
|
||||
networks:
|
||||
- natsnet
|
||||
|
||||
core:
|
||||
build: ./backend-core
|
||||
restart: unless-stopped
|
||||
command: -listen :10200 -postgres postgresql://root@pg:5432/core?sslmode=disable
|
||||
ports:
|
||||
- "10200:10200"
|
||||
networks:
|
||||
- pgnet
|
||||
networks:
|
||||
pgnet:
|
||||
natsnet:
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
CREATE TABLE "user" (
|
||||
id BYTEA PRIMARY KEY,
|
||||
first_name VARCHAR(65535),
|
||||
last_name VARCHAR(65535),
|
||||
phone_number VARCHAR(32) UNIQUE
|
||||
);
|
||||
|
||||
CREATE TABLE "conversation" (
|
||||
id BYTEA PRIMARY KEY,
|
||||
title VARCHAR(65535)
|
||||
);
|
||||
|
||||
CREATE TABLE member (
|
||||
"user" BYTEA REFERENCES "user"(id),
|
||||
"conversation" BYTEA REFERENCES "conversation"(id),
|
||||
UNIQUE ("user", "conversation")
|
||||
);
|
||||
|
||||
CREATE TABLE contact (
|
||||
"user" BYTEA REFERENCES "user"(id),
|
||||
contact BYTEA REFERENCES "user"(id),
|
||||
UNIQUE ("user", contact)
|
||||
);
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
FROM postgres:10.3
|
||||
|
||||
COPY 1_initial.up.sql /docker-entrypoint-initdb.d
|
Loading…
Reference in New Issue