-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added nodemon for livereload * testing table insertion * major refactor, change to fastify * added missing config files * changed nodejs runtime ver Co-authored-by: João Duarte <[email protected]>
- Loading branch information
Showing
43 changed files
with
6,177 additions
and
3,492 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 |
---|---|---|
@@ -1,23 +1,15 @@ | ||
APP_SERVER_PORT=3000 | ||
APP_SESSION_SALT= | ||
FASTIFY_IGNORE_WATCH="node_modules .git" | ||
|
||
# DEBUGGING PURPOUSES THIS SHOULD BE FALSE IN PRODUCTION MODE | ||
DEV_MODE=true | ||
PORT=3000 | ||
|
||
# LOGGING | ||
# Maximum value for logging files (20MB) | ||
MAX_LOG_SIZE=20000000 | ||
LOGS_TO_CONSOLE=true | ||
LOGS_FILENAME=trackovid-19-backend.log | ||
# DATABASE | ||
DB_HOST= | ||
DB_NAME= | ||
DB_USER= | ||
DB_PASS= | ||
DB_PORT= | ||
|
||
FB_APP_ID= | ||
FB_APP_SECRET= | ||
FB_CALLBACK_URL= | ||
|
||
# DATABASE | ||
DB_HOST=db-1-ireland.chq033ncjfv4.eu-west-1.rds.amazonaws.com | ||
DB_NAME=postgres | ||
DB_USER=postgres | ||
DB_PASS= | ||
DB_PORT=54320 | ||
FB_CALLBACK_URL= |
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ jobs: | |
- run: npm run build --if-present | ||
# - run: npm test | ||
env: | ||
CI: true | ||
CI: true |
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 +1 @@ | ||
12.16 | ||
12.16 |
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,67 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "The AWS CloudFormation template for this Serverless application", | ||
"Resources": { | ||
"ServerlessDeploymentBucket": { | ||
"Type": "AWS::S3::Bucket", | ||
"Properties": { | ||
"BucketEncryption": { | ||
"ServerSideEncryptionConfiguration": [ | ||
{ | ||
"ServerSideEncryptionByDefault": { | ||
"SSEAlgorithm": "AES256" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"ServerlessDeploymentBucketPolicy": { | ||
"Type": "AWS::S3::BucketPolicy", | ||
"Properties": { | ||
"Bucket": { | ||
"Ref": "ServerlessDeploymentBucket" | ||
}, | ||
"PolicyDocument": { | ||
"Statement": [ | ||
{ | ||
"Action": "s3:*", | ||
"Effect": "Deny", | ||
"Principal": "*", | ||
"Resource": [ | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"arn:", | ||
{ | ||
"Ref": "AWS::Partition" | ||
}, | ||
":s3:::", | ||
{ | ||
"Ref": "ServerlessDeploymentBucket" | ||
}, | ||
"/*" | ||
] | ||
] | ||
} | ||
], | ||
"Condition": { | ||
"Bool": { | ||
"aws:SecureTransport": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"Outputs": { | ||
"ServerlessDeploymentBucketName": { | ||
"Value": { | ||
"Ref": "ServerlessDeploymentBucket" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.