-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
191 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM node:18 | ||
WORKDIR /code | ||
COPY package*.json ./ | ||
RUN yarn | ||
COPY . . | ||
EXPOSE 8080 | ||
CMD ["node", "index.js"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/data |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM --platform=linux/x86_64 mysql:8.0 | ||
|
||
COPY ./init/* /docker-entrypoint-initdb.d/ | ||
COPY ./procedures/* /docker-entrypoint-initdb.d/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Initialize_Tables | ||
CALL labby.createForms; | ||
CALL labby.createOrganizations; | ||
CALL labby.createUsers; | ||
CALL labby.createSurveys; | ||
CALL labby.createQuestions; | ||
CALL labby.createQuestions_Answer; | ||
CALL labby.createAnswers; | ||
CALL labby.createAssignment; | ||
CALL labby.createProjects; | ||
CALL labby.createBillable; | ||
CALL labby.createClickAnalytics; | ||
CALL labby.createClinical; | ||
CALL labby.createConditions; | ||
CALL labby.createCostCenters; | ||
CALL labby.createCostCenterAssignments; | ||
CALL labby.createDrafts; | ||
CALL labby.createProjectAssignments; | ||
CALL labby.createQuestions_Cost; | ||
CALL labby.createTasks; | ||
CALL labby.createSubtasks; | ||
|
||
CALL addUser('DEMO-USER-1', 'ORG-ID-A', 'Mapcore', '[email protected]', true, 'd7f349eab1e95fa9', '39cb61ac781817affb8d1af5fe4768007e160646af0e8a844db0ae27e0a7263d6182a133347505a442f2672f499e14b51e4830cfcdbe64c9a8a5077cbfd3a831'); |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,5 +149,5 @@ CREATE PROCEDURE `delete_billable` ( | |
BEGIN | ||
DELETE FROM billable WHERE billable_id = id; | ||
END $$ | ||
|
||
DELIMITER ; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,5 @@ CREATE PROCEDURE `delete_project` ( | |
BEGIN | ||
DELETE FROM projects WHERE project_id = id; | ||
END $$ | ||
|
||
DELIMITER ; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
USE `labby`; | ||
|
||
DROP procedure IF EXISTS `delete_task`; | ||
DROP procedure IF EXISTS `delete_subtask`; | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,5 @@ SELECT * FROM subtasks | |
WHERE subtasks.fk_task_id = `task_id`; | ||
|
||
END $$ | ||
|
||
DELIMITER ; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,5 +124,5 @@ UPDATE `subtasks` SET `subtask_state`=`_subtask_state`, `subtask_updated` = NOW( | |
|
||
END $$ | ||
|
||
|
||
DELIMITER ; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
version: "3.9" | ||
services: | ||
client: | ||
build: ./frontend | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- web | ||
web: | ||
build: ./backend | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
MYSQL_PWD: 'Launchpad' | ||
depends_on: | ||
- db | ||
db: | ||
build: ./database | ||
restart: always | ||
command: | ||
--secure_file_priv='' | ||
--local_infile=1 | ||
--default-authentication-plugin=mysql_native_password | ||
environment: | ||
MYSQL_DATABASE: 'labby' | ||
MYSQL_USER: 'launchpad' | ||
MYSQL_PASSWORD: 'Launchpad' | ||
MYSQL_ROOT_PASSWORD: 'Launchpad' | ||
TZ: 'America/Los_Angeles' | ||
ports: | ||
- '3306:3306' | ||
expose: | ||
- '3306' | ||
volumes: | ||
- ./database/data:/var/lib/mysql | ||
- ./database/init.sql:/docker-entrypoint-initdb.d/~init.sql | ||
nginx: | ||
build: ./nginx | ||
restart: always | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
# volumes: | ||
# - ./certbot/conf:/etc/letsencrypt | ||
# - ./certbot/www:/var/www/certbot | ||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" | ||
# certbot: | ||
# image: certbot/certbot | ||
# restart: always | ||
# volumes: | ||
# - ./certbot/conf:/etc/letsencrypt | ||
# - ./certbot/www:/var/www/certbot | ||
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM node:18 | ||
WORKDIR /app | ||
ENV PATH /app/node_modules/.bin:$PATH | ||
COPY package*.json ./ | ||
RUN yarn | ||
COPY . ./ | ||
CMD ["yarn", "start"] |
Oops, something went wrong.