-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from bluewave-labs/develop
Develop
- Loading branch information
Showing
208 changed files
with
28,367 additions
and
13,629 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
language: "en-CA" | ||
tone_instructions: "His palms are sweaty, knees weak, arms are heavy There’s vomit on his sweater already, mom’s spaghetti" | ||
early_access: false | ||
reviews: | ||
profile: "assertive" | ||
profile: "chill" | ||
request_changes_workflow: false | ||
high_level_summary: false | ||
poem: false | ||
review_status: true | ||
review_status: false | ||
|
||
auto_review: | ||
enabled: true | ||
drafts: false | ||
chat: | ||
auto_reply: false | ||
|
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,12 @@ | ||
# Development Environment Configuration | ||
NODE_ENV=development | ||
PORT=3000 | ||
# Database Configuration | ||
DEV_DB_USERNAME=user123 | ||
DEV_DB_PASSWORD=password123 | ||
DEV_DB_NAME=onboarding_db | ||
DEV_DB_HOST=localhost | ||
DEV_DB_PORT=5432 | ||
|
||
# JWT Secret Key | ||
JWT_SECRET="NKrbO2lpCsOpVAlqAPsjZ0tZXzIoKru7gAmYZ7XlHn0=" |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
'config': path.resolve('config', 'config.js'), | ||
'models-path': path.resolve('src', 'models'), | ||
'migrations-path': path.resolve('migrations'), | ||
'seeders-path': path.resolve('seeders') | ||
}; |
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,13 @@ | ||
FROM node:22 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
CMD if [ "$$NODE_ENV" = "production" ] ; then npm run prod ; elif [ "$$NODE_ENV" = "staging" ] ; then npm run staging ; else npm run dev ; fi |
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,37 +1,30 @@ | ||
const { Sequelize } = require('sequelize'); | ||
require('dotenv').config(); // Load environment variables from .env file | ||
|
||
const databaseConfig = { | ||
require("dotenv").config(); | ||
module.exports = { | ||
development: { | ||
username: process.env.DEV_DB_USERNAME, | ||
password: process.env.DEV_DB_PASSWORD, | ||
database: process.env.DEV_DB_NAME, | ||
host: process.env.DEV_DB_HOST, | ||
dialect: 'postgres', | ||
host: 'db', | ||
dialect: "postgres", | ||
port: process.env.DEV_DB_PORT, | ||
logging: false // Disable logging in development mode | ||
logging: false, | ||
}, | ||
test: { | ||
username: process.env.TEST_DB_USERNAME, | ||
password: process.env.TEST_DB_PASSWORD, | ||
database: process.env.TEST_DB_NAME, | ||
host: process.env.TEST_DB_HOST, | ||
dialect: 'postgres', | ||
dialect: "postgres", | ||
port: process.env.TEST_DB_PORT, | ||
logging: false // Disable logging in test mode | ||
logging: false, | ||
}, | ||
production: { | ||
username: process.env.PROD_DB_USERNAME, | ||
password: process.env.PROD_DB_PASSWORD, | ||
database: process.env.PROD_DB_NAME, | ||
host: process.env.PROD_DB_HOST, | ||
dialect: 'postgres', | ||
dialect: "postgres", | ||
port: process.env.PROD_DB_PORT, | ||
logging: false // Disable logging in production mode | ||
} | ||
logging: false, | ||
}, | ||
}; | ||
|
||
const env = process.env.NODE_ENV || 'development'; | ||
const sequelize = new Sequelize(databaseConfig[env]); | ||
|
||
module.exports = sequelize; |
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,43 +1,42 @@ | ||
'use strict'; | ||
"use strict"; | ||
|
||
/** @type {import('sequelize-cli').Migration} */ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.createTable('users', { | ||
await queryInterface.createTable("users", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
autoIncrement: true, | ||
}, | ||
username: { | ||
type: Sequelize.STRING(50), | ||
allowNull: false, | ||
unique: true | ||
unique: true, | ||
}, | ||
email: { | ||
type: Sequelize.STRING(100), | ||
allowNull: false, | ||
unique: true | ||
unique: true, | ||
}, | ||
password: { | ||
type: Sequelize.STRING(100), | ||
allowNull: false | ||
allowNull: false, | ||
}, | ||
role: { | ||
type: Sequelize.STRING(20), | ||
allowNull: false, | ||
defaultValue: 'user' | ||
defaultValue: "user", | ||
}, | ||
created_at: { | ||
createdAt: { | ||
type: Sequelize.DATE, | ||
allowNull: false, | ||
defaultValue: Sequelize.literal('CURRENT_TIMESTAMP') | ||
} | ||
defaultValue: Sequelize.literal("CURRENT_TIMESTAMP"), | ||
}, | ||
}); | ||
}, | ||
|
||
down: async (queryInterface, Sequelize) => { | ||
await queryInterface.dropTable('users'); | ||
} | ||
await queryInterface.dropTable("users"); | ||
}, | ||
}; | ||
|
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,64 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
await queryInterface.createTable("popup", { | ||
id: { | ||
type: Sequelize.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true, | ||
}, | ||
closeButtonAction: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
validate: { | ||
isIn: [["no-action", "open-url", "close-popup", "open-url-new-tab"]], | ||
}, | ||
}, | ||
popupSize: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
validate: { | ||
isIn: [["small", "medium", "large"]], | ||
}, | ||
}, | ||
url: { | ||
type: Sequelize.STRING, | ||
allowNull: true, | ||
}, | ||
actionButtonText: { | ||
type: Sequelize.STRING, | ||
allowNull: true, | ||
}, | ||
headerBackgroundColor: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: "#FFFFFF", | ||
}, | ||
headerColor: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: "#FFFFFF", | ||
}, | ||
textColor: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: "#FFFFFF", | ||
}, | ||
buttonBackgroundColor: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: "#FFFFFF", | ||
}, | ||
buttonTextColor: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: "#FFFFFF", | ||
}, | ||
}); | ||
}, | ||
|
||
down: async (queryInterface, Sequelize) => { | ||
await queryInterface.dropTable("popup"); | ||
}, | ||
}; |
Oops, something went wrong.